]> xmof Git - DeDRM.git/commitdiff
Undefined name: Define RegError
authorChristian Clauss <cclauss@me.com>
Mon, 20 Jan 2020 13:41:29 +0000 (14:41 +0100)
committerGitHub <noreply@github.com>
Mon, 20 Jan 2020 13:41:29 +0000 (14:41 +0100)
dedrm_src/kindlekey.py

index ec0adde6db0d59a12bcb751925f872449e07b8fa..7e02b6c2f6f253527f980aa77d12e2d2ae808b33 100644 (file)
@@ -40,6 +40,12 @@ from struct import pack, unpack, unpack_from
 import json
 import getopt
 
+try:
+    RegError
+except NameError:
+    class RegError(Exception):
+        pass
+
 # Routines common to Mac and PC
 
 # Wrap a stream so that output gets flushed immediately