Skip to content

Commit 8e16d2a

Browse files
committed
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.
1 parent 4c0a42b commit 8e16d2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/classes/app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def __init__(self, *args, mode=None):
7474

7575
# Re-route stdout and stderr to logger
7676
reroute_output()
77-
except (ImportError, ModuleNotFoundError) as ex:
77+
except ImportError as ex:
7878
tb = traceback.format_exc()
7979
QMessageBox.warning(None, "Import Error",
8080
"Module: %(name)s\n\n%(tb)s" % {"name": ex.name, "tb": tb})

0 commit comments

Comments
 (0)