diff --git a/librespot/crypto.py b/librespot/crypto.py index 6ae8c23..d09a4d5 100644 --- a/librespot/crypto.py +++ b/librespot/crypto.py @@ -65,7 +65,7 @@ class CipherPair: if mac != expected_mac: raise RuntimeError() return Packet(cmd, payload_bytes) - except IndexError: + except (IndexError, OSError): raise RuntimeError("Failed to receive packet") diff --git a/requirements.txt b/requirements.txt index 40f37f5..d34886e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ defusedxml>=0.7.1 protobuf==3.20.1 -pycryptodomex>=3.21.0 +pycryptodomex>=3.22.0 pyogg>=0.6.14a.1 requests>=2.32.3 websocket-client>=1.8.0 -zeroconf>=0.136.0 +zeroconf>=0.146.4