We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 603b510 + a5db002 commit e2c914fCopy full SHA for e2c914f
1 file changed
librespot/crypto.py
@@ -65,7 +65,7 @@ def receive_encoded(self, connection: Session.ConnectionHolder) -> Packet:
65
if mac != expected_mac:
66
raise RuntimeError()
67
return Packet(cmd, payload_bytes)
68
- except IndexError:
+ except (IndexError, OSError):
69
raise RuntimeError("Failed to receive packet")
70
71
0 commit comments