Merge pull request #5146 from achillesrasquinha/py3
[FIX] safe decode for 3
This commit is contained in:
commit
925c35eee2
1 changed files with 1 additions and 1 deletions
|
|
@ -399,7 +399,7 @@ class Email:
|
|||
self.subject = safe_decode(self.subject, _subject[0][1])
|
||||
else:
|
||||
# assume that the encoding is utf-8
|
||||
self.subject = safe_decode(subject)[:140]
|
||||
self.subject = safe_decode(self.subject)[:140]
|
||||
|
||||
if not self.subject:
|
||||
self.subject = "No Subject"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue