From: kaliko Date: Mon, 25 Oct 2021 09:20:01 +0000 (+0200) Subject: Catch forgotten exception in mpdclient (Closes #59) X-Git-Tag: 0.18.0~13 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=48e9d961a1dce5739ad59301b179a3bd0cc02754;p=mpd-sima.git Catch forgotten exception in mpdclient (Closes #59) --- diff --git a/sima/mpdclient.py b/sima/mpdclient.py index e2f0e2c..3bd13ae 100644 --- a/sima/mpdclient.py +++ b/sima/mpdclient.py @@ -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):