From d8753dc7902d0cdd10fd7fc8bafdaa0b1861b043 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Mon, 13 Jun 2022 01:46:59 -0700 Subject: [PATCH] Fix Windows issue if no exception --- src/ocrmypdf/subprocess/_windows.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ocrmypdf/subprocess/_windows.py b/src/ocrmypdf/subprocess/_windows.py index 10b2d2be..c610c35c 100644 --- a/src/ocrmypdf/subprocess/_windows.py +++ b/src/ocrmypdf/subprocess/_windows.py @@ -21,7 +21,6 @@ try: import winreg except ModuleNotFoundError as _notfound_ex: raise ModuleNotFoundError("This module is for Windows only") from _notfound_ex -del _notfound_ex log = logging.getLogger(__name__)