From 8e16d2a1708b1cac090541909464e50c5a71c377 Mon Sep 17 00:00:00 2001 From: "FeRD (Frank Dana)" Date: Wed, 25 Dec 2019 04:22:23 -0500 Subject: [PATCH] Remove ModuleNotFoundError exception check Turns out ModuleNotFoundError was only added in Python 3.6, and since our AppImages are built with 3.4 this causes problems. But ModuleNotFoundError is a subclass of ImportError anyway, so just checking for ImportError covers all cases. --- src/classes/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/app.py b/src/classes/app.py index bae9876138..8ce8f05dc3 100644 --- a/src/classes/app.py +++ b/src/classes/app.py @@ -74,7 +74,7 @@ def __init__(self, *args, mode=None): # Re-route stdout and stderr to logger reroute_output() - except (ImportError, ModuleNotFoundError) as ex: + except ImportError as ex: tb = traceback.format_exc() QMessageBox.warning(None, "Import Error", "Module: %(name)s\n\n%(tb)s" % {"name": ex.name, "tb": tb})