diff --git a/librespot/crypto.py b/librespot/crypto.py index a0a2076..6ae8c23 100644 --- a/librespot/crypto.py +++ b/librespot/crypto.py @@ -168,8 +168,7 @@ class Packet: @staticmethod def parse(val: typing.Union[bytes, None]) -> typing.Union[bytes, None]: for cmd in [ - Packet.Type.__dict__[attr] - for attr in Packet.Type.__dict__ + Packet.Type.__dict__[attr] for attr in Packet.Type.__dict__ if re.search("__.+?__", attr) is None and type(Packet.Type.__dict__[attr]) is bytes ]: