Improve objreg error message if no window is given

This commit is contained in:
Florian Bruhin 2016-07-08 17:09:20 +02:00
parent 7360ea69ba
commit dcf39538a3

View File

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