ProgramsDialog: fixed an issue causing a non-existent module not being detected.

Sun, 13 May 2018 14:58:23 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 13 May 2018 14:58:23 +0200
changeset 6288
67ae52179c8b
parent 6287
9a193ff6d24a
child 6289
f481df37413c

ProgramsDialog: fixed an issue causing a non-existent module not being detected.

Preferences/ProgramsDialog.py file | annotate | diff | comparison | revisions
--- a/Preferences/ProgramsDialog.py	Sun May 13 12:57:00 2018 +0200
+++ b/Preferences/ProgramsDialog.py	Sun May 13 14:58:23 2018 +0200
@@ -349,7 +349,8 @@
                                      Preferences.getSystem("IOEncoding"),
                                      'replace')
                         if exeModule and exeModule[0] == "-m" and \
-                                "ImportError:" in output:
+                            ("ImportError:" in output or
+                             "ModuleNotFoundError:" in output):
                             version = self.tr("(module not found)")
                         else:
                             if versionRe is None:

eric ide

mercurial