hints: Fix URL resolving crash with new WebElement API.
This commit is contained in:
parent
3597817111
commit
00193df99e
@ -388,8 +388,9 @@ class HintManager(QObject):
|
|||||||
Return:
|
Return:
|
||||||
A QUrl with the absolute URL, or None.
|
A QUrl with the absolute URL, or None.
|
||||||
"""
|
"""
|
||||||
text = elem['href']
|
try:
|
||||||
if not text:
|
text = elem['href']
|
||||||
|
except KeyError:
|
||||||
return None
|
return None
|
||||||
if baseurl is None:
|
if baseurl is None:
|
||||||
baseurl = self._context.baseurl
|
baseurl = self._context.baseurl
|
||||||
|
Loading…
Reference in New Issue
Block a user