ProgramsDialog: added another condition for failing to load a Python module via -m.

Mon, 21 Jan 2019 19:21:25 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 21 Jan 2019 19:21:25 +0100
changeset 6667
d45c9b0c3851
parent 6666
06f6e0f24e89
child 6668
d251ea768383

ProgramsDialog: added another condition for failing to load a Python module via -m.

Preferences/ProgramsDialog.py file | annotate | diff | comparison | revisions
--- a/Preferences/ProgramsDialog.py	Mon Jan 21 19:12:29 2019 +0100
+++ b/Preferences/ProgramsDialog.py	Mon Jan 21 19:21:25 2019 +0100
@@ -368,7 +368,8 @@
                                      'replace')
                         if exeModule and exeModule[0] == "-m" and \
                             ("ImportError:" in output or
-                             "ModuleNotFoundError:" in output):
+                             "ModuleNotFoundError:" in output or
+                             proc.exitCode() != 0):
                             version = self.tr("(module not found)")
                         else:
                             if versionRe is None:

eric ide

mercurial