Restore sys.excepthook in scripts.run_profile

This commit is contained in:
Florian Bruhin 2016-09-12 09:28:09 +02:00
parent 43b563f600
commit 32a33c26a8

View File

@ -66,6 +66,10 @@ def main():
profiler = cProfile.Profile()
profiler.runcall(qutebrowser.qutebrowser.main)
# If we have an exception after here, we don't want the qutebrowser
# exception hook to take over.
sys.excepthook = sys.__excepthook__
profiler.dump_stats(profilefile)
if args.profile_tool == 'none':