]> kaliko git repositories - mpd-sima.git/commitdiff
Catch forgotten exception in mpdclient (Closes #59)
authorkaliko <kaliko@azylum.org>
Mon, 25 Oct 2021 09:20:01 +0000 (11:20 +0200)
committerkaliko <kaliko@azylum.org>
Mon, 25 Oct 2021 09:20:01 +0000 (11:20 +0200)
sima/mpdclient.py

index e2f0e2c4566f19055ebab35da270381a930cdd7c..3bd13aef7b4b3705c092f086c034723d1b364680 100644 (file)
@@ -128,7 +128,9 @@ class MPD(MPDClient):
             if cmd in track_wrapped:
                 return tracks_wrapper(super().__getattr__(cmd))
             return super().__getattr__(cmd)
-        except OSError as err:
+        except OSError as err:  # socket errors
+            raise PlayerError(err) from err
+        except MPDError as err:  # hight level MPD client errors
             raise PlayerError(err) from err
 
     def disconnect(self):