mirror of
https://github.com/beetbox/beets.git
synced 2025-12-26 02:24:33 +01:00
Catch UnreadableFileError when reading files in a (try_)write context
This commit is contained in:
parent
132fad847b
commit
dd58f1b452
1 changed files with 1 additions and 1 deletions
|
|
@ -398,7 +398,7 @@ class Item(LibModel):
|
|||
try:
|
||||
mediafile = MediaFile(syspath(path),
|
||||
id3v23=beets.config['id3v23'].get(bool))
|
||||
except (OSError, IOError) as exc:
|
||||
except (OSError, IOError, UnreadableFileError) as exc:
|
||||
raise ReadError(self.path, exc)
|
||||
|
||||
mediafile.update(self)
|
||||
|
|
|
|||
Loading…
Reference in a new issue