Skip to content

Commit

Permalink
QtWebEngine: Don't raise CommandError with no hint
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Compiler committed Aug 18, 2016
1 parent 0b9aec8 commit 2a0e503
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qutebrowser/browser/hints.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,8 @@ def _start_cb(self, elems):
filterfunc = webelem.FILTERS.get(self._context.group, lambda e: True)
elems = [e for e in elems if filterfunc(e)]
if not elems:
raise cmdexc.CommandError("No elements found.")
message.error(self._win_id, "No elements found.", immediately=True)
return
strings = self._hint_strings(elems)
log.hints.debug("hints: {}".format(', '.join(strings)))

Expand Down

0 comments on commit 2a0e503

Please sign in to comment.