mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-25 17:13:57 +00:00
Fix bytes/string issue with URLs
This commit is contained in:
@@ -29,7 +29,7 @@ in PyQt and also adds a utility function for opening Picard URLS.
|
||||
|
||||
def open(url):
|
||||
try:
|
||||
webbrowser.open(url)
|
||||
webbrowser.open(bytes(url).decode())
|
||||
except webbrowser.Error as e:
|
||||
QtWidgets.QMessageBox.critical(None, _("Web Browser Error"), _("Error while launching a web browser:\n\n%s") % (e,))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user