mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
b3ec54636d
commit
5b28a4d1a6
@ -979,7 +979,10 @@ class Boss(QObject):
|
||||
if current_container().has_name(target):
|
||||
self.link_clicked(target, frag, show_anchor_not_found=True)
|
||||
else:
|
||||
purl = urlparse(url)
|
||||
try:
|
||||
purl = urlparse(url)
|
||||
except ValueError:
|
||||
return
|
||||
if purl.scheme not in {'', 'file'}:
|
||||
open_url(QUrl(url))
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user