Recipient address error message status bar unicode fix

- when reporting an error about recipient address in the status bar, it
didn't correctly handle unicode
This commit is contained in:
Peter Šurda 2016-10-24 22:31:54 +02:00
parent 2c972fbe41
commit ad0d2c375a
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -2006,6 +2006,10 @@ class MyForm(settingsmixin.SMainWindow):
toAddress)
if status != 'success':
logger.error('Error: Could not decode ' + toAddress + ':' + status)
try:
toAddress = unicode(toAddress, 'utf-8', 'ingore')
except:
pass
if status == 'missingbm':
self.statusBar().showMessage(_translate(