]> kaliko git repositories - python-musicpdaio.git/blobdiff - mpdaio/client.py
Fixed wrong exception name
[python-musicpdaio.git] / mpdaio / client.py
index aaffc0a929e3f4b9cc7de56ce3d95c4d9c1fd480..c46aa74054c11a7de6f0e0d7c55f4fa0a1076b45 100644 (file)
@@ -426,7 +426,7 @@ class CmdHandler:
     async def _fetch_nothing(self):
         line = await self._read_line()
         if line is not None:
-            raise ProtocolError(f"Got unexpected return value: '{line}'")
+            raise MPDProtocolError(f"Got unexpected return value: '{line}'")
 
     async def _fetch_item(self):
         pairs = [_ async for _ in self._read_pairs()]