From c6ccb56208b112b0ffa4a84622cc1fd579de973c Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 9 Oct 2014 06:56:04 +0200 Subject: [PATCH] Handle exceptions while crash dialog is shown correctly. Fixes #168. --- qutebrowser/app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qutebrowser/app.py b/qutebrowser/app.py index a46cc2add..401ac1a28 100644 --- a/qutebrowser/app.py +++ b/qutebrowser/app.py @@ -416,6 +416,11 @@ class Application(QApplication): exc = (exctype, excvalue, tb) sys.__excepthook__(*exc) + if not self._quit_status['crash']: + log.misc.error("ARGH, there was an exception while the crash " + "dialog is already shown:", exc_info=exc) + return + self._quit_status['crash'] = False try: