don't wrap standard errors during Mutagen save()

This commit is contained in:
Adrian Sampson 2014-03-25 22:44:15 -07:00
parent 05ebd6d28e
commit d778443ea0

View file

@ -1237,6 +1237,9 @@ class MediaFile(object):
# Isolate bugs in Mutagen.
try:
self.mgfile.save(**kwargs)
except (IOError, OSError):
# Propagate these through: they don't represent Mutagen bugs.
raise
except Exception as exc:
log.debug(traceback.format_exc())
log.error('uncaught Mutagen exception in save: {0}'.format(exc))