one more error message (#125)

This commit is contained in:
Lucas Duailibe 2013-03-25 11:45:11 -03:00
parent 56c53acbab
commit c682ac84b0

View file

@ -47,7 +47,12 @@ def _print_and_apply_changes(lib, item, move, pretend, write):
lib.move(item, with_album=False)
if write:
item.write()
try:
item.write()
except Exception as exc:
log.error(u'could not sync {0}: {1}'.format(
repr(item.path), exc))
return False
lib.store(item)
return True