Patch related to #6092

This commit is contained in:
Miroslav Štampar 2026-08-10 11:17:04 +02:00
parent dd57fd91e2
commit 3d1258d57d
2 changed files with 2 additions and 2 deletions

View file

@ -506,7 +506,7 @@ def main():
logger.critical(errMsg)
raise SystemExit
elif all(_ in excMsg for _ in ("FileNotFoundError: [Errno 2] No such file or directory", "cwd = os.getcwd()")):
elif all(_ in excMsg for _ in ("FileNotFoundError: [Errno 2] No such file or directory", "os.getcwd()")):
errMsg = "invalid runtime environment ('%s')" % excMsg.split("Error: ")[-1].strip()
logger.critical(errMsg)
raise SystemExit