Don't raise CommandError in HintManager.fire

This commit is contained in:
Florian Bruhin 2014-06-21 17:41:25 +02:00
parent e1aabc974c
commit 664079c728

View File

@ -528,7 +528,8 @@ class HintManager(QObject):
elif self._context.target in url_handlers:
url = self._resolve_url(elem)
if url is None:
raise CommandError("No suitable link found for this element.")
message.error("No suitable link found for this element.")
return
url_handlers[self._context.target](url)
else:
raise ValueError("No suitable handler found!")