str(subject) may not be ascii #1191
|
@ -131,7 +131,7 @@ class BMAccount(object):
|
||||||
self.toAddress = toAddress
|
self.toAddress = toAddress
|
||||||
self.fromAddress = fromAddress
|
self.fromAddress = fromAddress
|
||||||
if isinstance(subject, unicode):
|
if isinstance(subject, unicode):
|
||||||
self.subject = str(subject)
|
self.subject = subject.encode('utf-8', 'ignore').decode('utf-8') #### str(subject) not ascii
|
||||||
else:
|
else:
|
||||||
self.subject = subject
|
self.subject = subject
|
||||||
self.message = message
|
self.message = message
|
||||||
|
|
Reference in New Issue
Block a user