From d2b733ea7ab75c24f42d7c1085837c915066e9b0 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 19 Feb 2014 13:37:42 +0100 Subject: [PATCH] Check if Exception is subclass of Exception properly --- qutebrowser/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/app.py b/qutebrowser/app.py index dbac5af7a..91884d3a7 100644 --- a/qutebrowser/app.py +++ b/qutebrowser/app.py @@ -268,7 +268,7 @@ class QuteBrowser(QApplication): exc = (exctype, excvalue, tb) sys.__excepthook__(*exc) - if not (isinstance(exctype, Exception) or exctype is Exception): + if not issubclass(exctype, Exception): # probably a KeyboardInterrupt try: self.shutdown()