mirror of
https://github.com/beetbox/beets.git
synced 2025-12-17 22:23:16 +01:00
library: log path, reading of which has raised an exception
This commit is contained in:
parent
492f168124
commit
12cae9ee93
1 changed files with 4 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue