remove unrequired assert

Testing code that shouldn't have been included with modoboa/modoboa#1330
This commit is contained in:
Andrew Fyfe
2018-01-08 19:42:24 +00:00
parent 71582c57cb
commit 26d24b7ff0
-1
View File
@@ -84,7 +84,6 @@ class Email(object):
def msg(self):
if self._msg is None:
mail_text = self._fetch_message()
assert isinstance(mail_text, bytes)
# python 2 expects str (bytes), python 3 expects str (unicode)
mail_text = smart_str(mail_text, errors="replace")
self._msg = email.message_from_string(mail_text)