Don't try to add tab repr in TabDeletedError.
This will always fail with another RuntimeError...
This commit is contained in:
parent
d87a1bb2b4
commit
596bff0772
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user