Quit properly on debugger exit
This commit is contained in:
parent
3c20b78d8b
commit
1a3ed11070
@ -22,6 +22,7 @@ import sys
|
||||
import logging
|
||||
import subprocess
|
||||
import configparser
|
||||
from bdb import BdbQuit
|
||||
from functools import partial
|
||||
from signal import signal, SIGINT
|
||||
from argparse import ArgumentParser
|
||||
@ -398,8 +399,8 @@ class QuteBrowser(QApplication):
|
||||
|
||||
self._quit_status['crash'] = False
|
||||
|
||||
if not issubclass(exctype, Exception):
|
||||
# probably a KeyboardInterrupt
|
||||
if exctype is BdbQuit or not issubclass(exctype, Exception):
|
||||
# pdb exit, KeyboardInterrupt, ...
|
||||
try:
|
||||
self.shutdown()
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user