From aae33a03081850eeb8b3afe6db510ff03f06029f Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 16 Jan 2015 09:09:12 +0100 Subject: [PATCH] Handle another webelem.IsNullError with hints. --- qutebrowser/browser/hints.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py index f60f25448..4a31972e2 100644 --- a/qutebrowser/browser/hints.py +++ b/qutebrowser/browser/hints.py @@ -752,8 +752,11 @@ class HintManager(QObject): pass visible = {} for k, e in self._context.elems.items(): - if not self._is_hidden(e.label): - visible[k] = e + try: + if not self._is_hidden(e.label): + visible[k] = e + except webelem.IsNullError: + pass if not visible: # Whoops, filtered all hints modeman.leave(self._win_id, usertypes.KeyMode.hint, 'all filtered')