From 30e211367003bafa67834ffff3f31e6b5a897f4b Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Mon, 21 May 2018 15:43:23 +0300 Subject: [PATCH] A stub against remaining unicode bug. --- src/bitmessageqt/account.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bitmessageqt/account.py b/src/bitmessageqt/account.py index 7f4222be..0e629900 100644 --- a/src/bitmessageqt/account.py +++ b/src/bitmessageqt/account.py @@ -129,7 +129,11 @@ class BMAccount(object): if queryreturn != []: for row in queryreturn: label, = row - return unicode(label, 'utf-8') + try: + return unicode(label, 'utf-8') + except TypeError: + print("WARNING: label is of type unicode: %s" % label) + return label def parseMessage(self, toAddress, fromAddress, subject, message): self.toAddress = toAddress