From 9c26eba76118dd6aaf62a5c37999a8d359d28c25 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 19 Jun 2014 17:56:41 +0200 Subject: [PATCH] Catch weird TypeError when aborting question --- qutebrowser/utils/usertypes.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/qutebrowser/utils/usertypes.py b/qutebrowser/utils/usertypes.py index 8570d7adf..9de7e6a66 100644 --- a/qutebrowser/utils/usertypes.py +++ b/qutebrowser/utils/usertypes.py @@ -293,7 +293,13 @@ class Question(QObject): aborted: Always emitted. """ self.is_aborted = True - self.aborted.emit() + try: + self.aborted.emit() + except TypeError: + # FIXME + # We seem to get "pyqtSignal must be bound to a QObject, not + # 'Question' here, which makes no sense at all..." + pass class Timer(QTimer):