X-Git-Url: https://diplodocus.org/git/flac-archive/blobdiff_plain/7ca027cb386b85acf392c0c5dbeda45bd9483d4e..bc10ac6298048de2f6c67c9d4d413a54352ccda9:/fa-flacd diff --git a/fa-flacd b/fa-flacd index 5e93e1f..5716223 100755 --- a/fa-flacd +++ b/fa-flacd @@ -1,4 +1,4 @@ -#! /usr/bin/python +#! /usr/bin/python2 """ =head1 NAME @@ -158,7 +158,12 @@ def flac(dir, tracknum, tags): run_flac('wav', 'cue', '/'.join(['..', artist, outfile]), tags.all()) files = ['%s/%s.flac' % (artist, outfile)] - c(os.unlink, 'cue') + try: + c(os.unlink, 'cue') + except EnvironmentError, error: + if error.errno != ENOENT: + raise error + outlog = '/'.join(['..', artist, outfile + '.log']) c(os.rename, 'log', outlog) else: