]> diplodocus.org Git - flac-archive/blobdiff - rewrite-tags
Oops, abs(status) in SubprocessError.
[flac-archive] / rewrite-tags
index a4650cfa7b3005b9aa00e921b258203f633a634b..84eb1f8b1bda519e88ff2a8476636736cedd235f 100755 (executable)
@@ -13,7 +13,7 @@ class SubprocessError(Exception):
             msg = 'exited due to signal %d'
         else:
             msg = 'exit status %d'
-        Exception.__init__(self, msg % (status,))
+        Exception.__init__(self, msg % (abs(status),))
         self.status = status
         self.stderr = stderr
 
@@ -34,6 +34,8 @@ def do_read(filenames):
     all_tags = {}
     # Build the collated result in this Tags object.
     coll_tags = Tags()
+    # XXX The Tags interface is horrible.  It's gotta be almost 10 years since
+    # I wrote it, so not surprising...
     for fn in filenames:
         tags = get_tags(fn)
         track_tags = tags.get('TRACKNUMBER')