From: NoDRM Date: Sun, 10 Nov 2024 15:10:29 +0000 (+0100) Subject: Fix python2 support for ion.py X-Git-Url: http://git.xmof.duckdns.org/?a=commitdiff_plain;h=bde82fd7abf4e74e4852490d52e3b926eede1b2a;p=DeDRM.git Fix python2 support for ion.py --- diff --git a/DeDRM_plugin/ion.py b/DeDRM_plugin/ion.py index d89d54e..2f57d76 100644 --- a/DeDRM_plugin/ion.py +++ b/DeDRM_plugin/ion.py @@ -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])