Skip to content

Commit

Permalink
Remove ModuleNotFoundError exception check
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ferdnyc committed Dec 25, 2019
1 parent 4c0a42b commit 8e16d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 8e16d2a

Please sign in to comment.