diff options
author | Florian Bruhin <git@the-compiler.org> | 2015-03-10 22:16:41 +0100 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2015-03-19 06:21:08 +0100 |
commit | 2b34fbc0734ddb5fcdbb77da5f87e48b744218df (patch) | |
tree | 21cb99905be8949db1178efb744d0e2792372dd4 | |
parent | e8b689ab5098cef92a45324955dda3d0966245da (diff) | |
download | qutebrowser-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.py | 4 |
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 |