Check if Exception is subclass of Exception properly
This commit is contained in:
parent
f70ad71f9c
commit
d2b733ea7a
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user