From 7d8fdec1fda7d8c0812a9aa254cdf21529164544 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 28 Jan 2014 16:13:13 +0100 Subject: [PATCH] Fix exception hook --- qutebrowser/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qutebrowser/app.py b/qutebrowser/app.py index ac8948281..d7fbd6191 100644 --- a/qutebrowser/app.py +++ b/qutebrowser/app.py @@ -63,12 +63,12 @@ class QuteBrowser(QApplication): self.mainwindow.show() self.python_hacks() - def tmp_exception_hook(exctype, value, traceback): + def tmp_exception_hook(self, exctype, value, traceback): """Exception hook while initializing, simply exit""" sys.__excepthook__(exctype, value, traceback) self.exit(1) - def exception_hook(exctype, value, traceback): + def exception_hook(self, exctype, value, traceback): """Try very hard to write open tabs to a file and exit gracefully""" sys.__excepthook__(exctype, value, traceback) try: