A stub against remaining unicode bug.
This commit is contained in:
parent
b210fd84d1
commit
30e2113670
|
@ -129,7 +129,11 @@ class BMAccount(object):
|
||||||
if queryreturn != []:
|
if queryreturn != []:
|
||||||
for row in queryreturn:
|
for row in queryreturn:
|
||||||
label, = row
|
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):
|
def parseMessage(self, toAddress, fromAddress, subject, message):
|
||||||
self.toAddress = toAddress
|
self.toAddress = toAddress
|
||||||
|
|
Reference in New Issue
Block a user