From 6f8ed6749b79628b21db6868609787dbeb483f87 Mon Sep 17 00:00:00 2001 From: kaliko Date: Fri, 24 Dec 2021 09:19:36 +0100 Subject: [PATCH] Fixed wrong exception --- sima/mpdclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.5