From e433079dc6ac4e1320dedf647aa661fcb5f623e8 Mon Sep 17 00:00:00 2001 From: John Anderson Date: Fri, 10 May 2019 23:58:10 -0400 Subject: [PATCH] changed except statements to be Python3 compliant --- __init__.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index 58cbaf0..1fcaed3 100644 --- a/__init__.py +++ b/__init__.py @@ -269,7 +269,9 @@ def _generate_image_from_flac(self, flacPath): art, flacPath ) - except IndexError, TypeError: + except TypeError: + return FILE_ICON + except IndexError: return FILE_ICON except: return FILE_ICON @@ -290,7 +292,9 @@ def _generate_image_from_mp3(self, mp3Path): art, mp3Path ) - except IndexError, TypeError: + except TypeError: + return FILE_ICON + except IndexError: return FILE_ICON except: return FILE_ICON