--- 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: