browser.py fixed error logging on dict key checks

This commit is contained in:
James Booth
2016-04-15 23:36:43 +01:00
parent 1086b93015
commit b945ac3acc

View File

@@ -80,13 +80,13 @@ def prof_init(version, status, account_name, fulljid):
def prof_on_chat_win_focus(jid):
prof.completer_clear("/browser")
if _links[jid]:
if jid in _links:
prof.completer_add("/browser", _links[jid])
def prof_on_room_win_focus(room):
prof.completer_clear("/browser")
if _links[room]:
if room in _links:
prof.completer_add("/browser", _links[room])