From: kaliko Date: Fri, 24 Dec 2021 08:19:36 +0000 (+0100) Subject: Fixed wrong exception X-Git-Tag: 0.18.1~4 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=6f8ed6749b79628b21db6868609787dbeb483f87;p=mpd-sima.git Fixed wrong exception --- diff --git a/sima/mpdclient.py b/sima/mpdclient.py index 23b263e..b50df91 100644 --- a/sima/mpdclient.py +++ b/sima/mpdclient.py @@ -149,7 +149,7 @@ class MPD(MPDClient): # ConnectionError and ProtocolError are always fatal. Others may not # be, but we don't know how to handle them here, so treat them as if # they are instead of ignoring them. - except MPDError as err: + except PlayerError as err: raise PlayerError(f'Could not connect to "{host}:{port}": {err}') from err if password: try: