mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-12-03 12:14:12 +01:00
Merge pull request #1347 from fyfe/fix/remove-assert
remove unrequired assert
This commit is contained in:
@@ -84,7 +84,6 @@ class Email(object):
|
|||||||
def msg(self):
|
def msg(self):
|
||||||
if self._msg is None:
|
if self._msg is None:
|
||||||
mail_text = self._fetch_message()
|
mail_text = self._fetch_message()
|
||||||
assert isinstance(mail_text, bytes)
|
|
||||||
# python 2 expects str (bytes), python 3 expects str (unicode)
|
# python 2 expects str (bytes), python 3 expects str (unicode)
|
||||||
mail_text = smart_str(mail_text, errors="replace")
|
mail_text = smart_str(mail_text, errors="replace")
|
||||||
self._msg = email.message_from_string(mail_text)
|
self._msg = email.message_from_string(mail_text)
|
||||||
|
|||||||
Reference in New Issue
Block a user