From 559a3eb0a0d927d653b312f0ba4c06f188931a5c Mon Sep 17 00:00:00 2001 From: Thomas Scholtes Date: Tue, 11 Mar 2014 16:29:29 +0100 Subject: [PATCH] Revert exception handling in importer This reverts commit 6bd6618c14c5c5008316e7f7933a22d5a5bb75de. I will think of a better way to handle this and open a PR. --- beets/importer.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/beets/importer.py b/beets/importer.py index 5e7ef2b43..23a9c2405 100644 --- a/beets/importer.py +++ b/beets/importer.py @@ -888,10 +888,13 @@ def manipulate_files(session): if config['import']['write'] and task.should_write_tags(): try: item.write() - except Exception as exc: - log.error(u'could not write {0}: {1}'.format( - util.displayable_path(item.path), exc + except mediafile.UnreadableFileError as exc: + log.error(u'error while writing ({0}): {0}'.format( + exc, + util.displayable_path(item.path) )) + except util.FilesystemError as exc: + exc.log(log) # Save new paths. with session.lib.transaction():