Mon, 21 Jan 2019 19:21:25 +0100
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: