mirror of
https://github.com/beetbox/beets.git
synced 2025-12-28 03:22:39 +01:00
info: error msg instead of traceback on IOError
IOErrors were previously not caught, displaying full traceback to the user
This commit is contained in:
parent
02855a44bd
commit
96a565a614
1 changed files with 1 additions and 1 deletions
|
|
@ -145,7 +145,7 @@ class InfoPlugin(BeetsPlugin):
|
|||
for data_emitter in data_collector(lib, ui.decargs(args)):
|
||||
try:
|
||||
data = data_emitter()
|
||||
except mediafile.UnreadableFileError as ex:
|
||||
except (mediafile.UnreadableFileError, IOError) as ex:
|
||||
self._log.error(u'cannot read file: {0}', ex)
|
||||
continue
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue