From 12cae9ee93a35f51dbd26bcbf435cd0a9ff231d6 Mon Sep 17 00:00:00 2001 From: Mike Kazantsev Date: Sat, 20 Oct 2012 20:07:27 +0600 Subject: [PATCH] library: log path, reading of which has raised an exception --- beets/library.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/beets/library.py b/beets/library.py index b634d3951..3131c7b79 100644 --- a/beets/library.py +++ b/beets/library.py @@ -273,7 +273,10 @@ class Item(object): read_path = self.path else: read_path = normpath(read_path) - f = MediaFile(syspath(read_path)) + try: f = MediaFile(syspath(read_path)) + except Exception as err: + log.error('Failed processing file: {!r}'.format(read_path)) + raise for key in ITEM_KEYS_META: setattr(self, key, getattr(f, key))