* morituri/common/encode.py:

Debug failing to write tags better.  See #60.
This commit is contained in:
Thomas Vander Stichele
2011-03-20 18:39:28 +00:00
parent b2a74e14c6
commit 335b49e4b4
2 changed files with 9 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2011-03-20 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/common/encode.py:
Debug failing to write tags better. See #60.
2011-03-20 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/program/cdparanoia.py:

View File

@@ -464,7 +464,8 @@ class SafeRetagTask(task.MultiSeparateTask):
if taskk == self.tasks[0]:
taglist = taskk.taglist.copy()
if common.tagListEquals(taglist, self._taglist):
self.debug('tags are already fine')
self.debug('tags are already fine: %r',
common.tagListToDict(taglist))
else:
# need to retag
self.debug('tags need to be rewritten')
@@ -497,6 +498,8 @@ class SafeRetagTask(task.MultiSeparateTask):
e = TypeError("Checksums failed")
self.setAndRaiseException(e)
else:
self.debug('failed to update tags, only have %r',
common.tagListToDict(self.tasks[4].taglist))
os.unlink(self._tmppath)
e = TypeError("Tags not written")
self.setAndRaiseException(e)