From 32a33c26a8f52da9eb66c4780ad15ebffc3441dc Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 12 Sep 2016 09:28:09 +0200 Subject: [PATCH] Restore sys.excepthook in scripts.run_profile --- scripts/dev/run_profile.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/dev/run_profile.py b/scripts/dev/run_profile.py index 6d8ec5bb1..87d2f0ed7 100755 --- a/scripts/dev/run_profile.py +++ b/scripts/dev/run_profile.py @@ -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':