]> diplodocus.org Git - flac-archive/commitdiff
(flacloop): Don't flip out in multi-file mode if 'cue' doesn't exist.
authorepg <>
Thu, 12 Oct 2006 22:45:24 +0000 (22:45 +0000)
committerepg <>
Thu, 12 Oct 2006 22:45:24 +0000 (22:45 +0000)
fa-flacd

index 2873a41825c37d70010ad1d9f8c30d65f9bcf787..59b09c4ca47fba18a26155d06b8485f7e2d4e5bc 100755 (executable)
--- a/fa-flacd
+++ b/fa-flacd
@@ -255,7 +255,11 @@ def flacloop(maxjobs):
                     else:
                         # multi-file
                         # Don't need cue file.
                     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
 
                         # Go over @tags, store all [n] tags in a list keyed by
                         # n in %tracks_to_tags, store all ARTIST (not