Skip to content

Commit

Permalink
Fix python2 support for ion.py
Browse files Browse the repository at this point in the history
  • Loading branch information
noDRM committed Nov 10, 2024
1 parent de3d91f commit bde82fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DeDRM_plugin/ion.py
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,7 @@ def decryptvoucher(self):
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])
Expand Down

0 comments on commit bde82fd

Please sign in to comment.