Fix bytes/string issue with URLs

This commit is contained in:
Sambhav Kothari
2017-04-06 23:39:22 +05:30
parent 80ec5426bf
commit 93cd519bfa

View File

@@ -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,))