]> kaliko git repositories - mpd-sima.git/blobdiff - sima/mpdclient.py
Fixed wrong exception
[mpd-sima.git] / sima / mpdclient.py
index 23b263e1ee92b24460b097034b421b794f4a2be4..b50df91fca637f961f3335637ee06274094aa25a 100644 (file)
@@ -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: