From 596bff077294f83a560b666295e3270911fa0b2c Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 10 Mar 2015 22:16:41 +0100 Subject: [PATCH] Don't try to add tab repr in TabDeletedError. This will always fail with another RuntimeError... --- qutebrowser/mainwindow/tabbedbrowser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qutebrowser/mainwindow/tabbedbrowser.py b/qutebrowser/mainwindow/tabbedbrowser.py index d7ced66ec..0254aef22 100644 --- a/qutebrowser/mainwindow/tabbedbrowser.py +++ b/qutebrowser/mainwindow/tabbedbrowser.py @@ -134,10 +134,10 @@ class TabbedBrowser(tabwidget.TabWidget): try: idx = self.indexOf(tab) except RuntimeError as e: - log.webview.debug("Got invalid tab {} ({})!".format(tab, e)) + log.webview.debug("Got invalid tab ({})!".format(e)) raise TabDeletedError(e) if idx == -1: - log.webview.debug("Got invalid tab {} (index is -1)!".format(tab)) + log.webview.debug("Got invalid tab (index is -1)!") raise TabDeletedError("index is -1!") return idx