X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Fmpdclient.py;h=b50df91fca637f961f3335637ee06274094aa25a;hb=f76a5c2fce5c9a515efb93991c53ce8e0edaf197;hp=23b263e1ee92b24460b097034b421b794f4a2be4;hpb=a7fe64c759576b0ddb1de3e94316b3167e21afb1;p=mpd-sima.git 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: