Don't try to add tab repr in TabDeletedError.

This will always fail with another RuntimeError...
This commit is contained in:
Florian Bruhin 2015-03-10 22:16:41 +01:00
parent d87a1bb2b4
commit 596bff0772

View File

@ -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