From ad0d2c375a72c8888d48fb851f626a20e305b749 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Mon, 24 Oct 2016 22:31:54 +0200 Subject: [PATCH] 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 --- src/bitmessageqt/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index 5c407c34..0eff7123 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -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(