mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
handle errors with foreign characters
This commit is contained in:
parent
554f82c007
commit
1318d8c5f8
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ you can enter it here. Use \\t to represent tab."""),
|
||||||
return
|
return
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
msg = _("Import failed.\n")
|
msg = _("Import failed.\n")
|
||||||
msg += traceback.format_exc()
|
msg += unicode(traceback.format_exc(), "ascii", "replace")
|
||||||
self.dialog.status.setText(msg)
|
self.dialog.status.setText(msg)
|
||||||
return
|
return
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in a new issue