playlist: Also catch IOErrors to restore Python 2.7 compatiblity

This commit is contained in:
Jan Holthuis 2019-02-17 16:00:04 +01:00
parent 32b6df046e
commit 055f2d3702

View file

@ -41,7 +41,7 @@ class PlaylistQuery(beets.dbcore.FieldQuery):
try:
f = open(beets.util.syspath(playlist_path), mode='rb')
except OSError:
except (OSError, IOError):
continue
if config['relative_to'].get() == 'library':