From 90335bb925a82f1de3ef065120d5b22e7cdb416e Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 20 Jan 2020 14:41:29 +0100 Subject: [PATCH] Undefined name: Define RegError --- dedrm_src/kindlekey.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dedrm_src/kindlekey.py b/dedrm_src/kindlekey.py index ec0adde..7e02b6c 100644 --- a/dedrm_src/kindlekey.py +++ b/dedrm_src/kindlekey.py @@ -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