Improve objreg error message if no window is given
This commit is contained in:
parent
7360ea69ba
commit
dcf39538a3
@ -153,6 +153,8 @@ def _get_tab_registry(win_id, tab_id):
|
||||
win_id = window.win_id
|
||||
elif win_id is not None:
|
||||
window = window_registry[win_id]
|
||||
else:
|
||||
raise TypeError("window is None with scope tab!")
|
||||
|
||||
if tab_id == 'current':
|
||||
tabbed_browser = get('tabbed-browser', scope='window', window=win_id)
|
||||
|
Loading…
Reference in New Issue
Block a user