A stub against remaining unicode bug.

This commit is contained in:
Dmitri Bogomolov 2018-05-21 15:43:23 +03:00
parent b210fd84d1
commit 30e2113670
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -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