Bug 1866760 - Do not handle SystemExit and KeyboardInterrupt as generic exceptions during error handling r=ahochheiden,glandium

Differential Revision: https://phabricator.services.mozilla.com/D194749
This commit is contained in:
serge-sans-paille
2023-11-30 08:04:28 +00:00
parent 5e48682718
commit bf920c1b96

4
mach
View File

@@ -157,7 +157,9 @@ def main(args):
print("Could not run mach: No mach source directory found.")
sys.exit(1)
sys.exit(mach.run(args))
except:
except (KeyboardInterrupt, SystemExit):
raise
except Exception as e:
if sys.version_info >= (
MAX_PYTHON_VERSION_TO_CONSIDER[0],
MAX_PYTHON_VERSION_TO_CONSIDER[1] + 1,