From bde82fd7abf4e74e4852490d52e3b926eede1b2a Mon Sep 17 00:00:00 2001 From: NoDRM Date: Sun, 10 Nov 2024 16:10:29 +0100 Subject: [PATCH] Fix python2 support for ion.py --- DeDRM_plugin/ion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])