handle errors with foreign characters

This commit is contained in:
Damien Elmes 2009-07-04 15:59:19 +09:00
parent 554f82c007
commit 1318d8c5f8

View file

@ -177,7 +177,7 @@ you can enter it here. Use \\t to represent tab."""),
return
except Exception, e:
msg = _("Import failed.\n")
msg += traceback.format_exc()
msg += unicode(traceback.format_exc(), "ascii", "replace")
self.dialog.status.setText(msg)
return
finally: