summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2015-03-10 22:16:41 +0100
committerFlorian Bruhin <git@the-compiler.org>2015-03-19 06:21:08 +0100
commit2b34fbc0734ddb5fcdbb77da5f87e48b744218df (patch)
tree21cb99905be8949db1178efb744d0e2792372dd4
parente8b689ab5098cef92a45324955dda3d0966245da (diff)
downloadqutebrowser-2b34fbc0734ddb5fcdbb77da5f87e48b744218df.tar.gz
qutebrowser-2b34fbc0734ddb5fcdbb77da5f87e48b744218df.zip
Don't try to add tab repr in TabDeletedError.
This will always fail with another RuntimeError...
-rw-r--r--qutebrowser/mainwindow/tabbedbrowser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qutebrowser/mainwindow/tabbedbrowser.py b/qutebrowser/mainwindow/tabbedbrowser.py
index 5667cbdbc..31f8e997b 100644
--- a/qutebrowser/mainwindow/tabbedbrowser.py
+++ b/qutebrowser/mainwindow/tabbedbrowser.py
@@ -133,10 +133,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