Check if Exception is subclass of Exception properly

This commit is contained in:
Florian Bruhin 2014-02-19 13:37:42 +01:00
parent f70ad71f9c
commit d2b733ea7a

View File

@ -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()