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:
4
mach
4
mach
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user