Quit properly on debugger exit

This commit is contained in:
Florian Bruhin 2014-05-06 12:11:00 +02:00
parent 3c20b78d8b
commit 1a3ed11070

View File

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