mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
make sure to encode js errors before writing to console
This commit is contained in:
parent
ddd247ee26
commit
f1aac15f9e
1 changed files with 2 additions and 1 deletions
|
@ -134,7 +134,8 @@ button {
|
|||
|
||||
def _jsErr(self, msg, line, srcID):
|
||||
sys.stdout.write(
|
||||
_("JS error on line %(a)d: %(b)s") % dict(a=line, b=msg+"\n"))
|
||||
(_("JS error on line %(a)d: %(b)s") %
|
||||
dict(a=line, b=msg+"\n")).encode("utf8"))
|
||||
|
||||
def _linkHandler(self, url):
|
||||
self.linkHandler(url.toString())
|
||||
|
|
Loading…
Reference in a new issue