From 055f2d3702e40a62dff9ed9469af03e487b2d548 Mon Sep 17 00:00:00 2001 From: Jan Holthuis Date: Sun, 17 Feb 2019 16:00:04 +0100 Subject: [PATCH] playlist: Also catch IOErrors to restore Python 2.7 compatiblity --- beetsplug/playlist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/playlist.py b/beetsplug/playlist.py index a6ab8d18b..759eaa51b 100644 --- a/beetsplug/playlist.py +++ b/beetsplug/playlist.py @@ -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':