]> diplodocus.org Git - flac-archive/blobdiff - fa-flacd
(flacloop): Don't flip out in multi-file mode if 'cue' doesn't exist.
[flac-archive] / fa-flacd
index 2873a41..59b09c4 100755 (executable)
--- a/fa-flacd
+++ b/fa-flacd
@@ -255,7 +255,11 @@ def flacloop(maxjobs):
                     else:
                         # multi-file
                         # Don't need cue file.
-                        c(os.unlink, dir[0] + '/cue')
+                        try:
+                            c(os.unlink, dir[0] + '/cue')
+                        except EnvironmentError, error:
+                            if error.errno != ENOENT:
+                                raise error
 
                         # Go over @tags, store all [n] tags in a list keyed by
                         # n in %tracks_to_tags, store all ARTIST (not