Fix python2 support for ion.py

This commit is contained in:
NoDRM 2024-11-10 16:10:29 +01:00
parent de3d91f5e5
commit bde82fd7ab

View file

@ -1348,7 +1348,7 @@ class DrmIonVoucher(object):
process_V4648(shared), process_V5683(shared)]
decrypted=False
lastexception: Exception | None = None
lastexception = None # type: Exception | None
for sharedsecret in sharedsecrets:
key = hmac.new(sharedsecret, b"PIDv3", digestmod=hashlib.sha256).digest()
aes = AES.new(key[:32], AES.MODE_CBC, self.cipheriv[:16])