From 1a3ed1107001ae477ac8c0f64c01fca65197af8d Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 6 May 2014 12:11:00 +0200 Subject: [PATCH] Quit properly on debugger exit --- qutebrowser/app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qutebrowser/app.py b/qutebrowser/app.py index 8e1896c34..e0e561e00 100644 --- a/qutebrowser/app.py +++ b/qutebrowser/app.py @@ -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