mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
remove unrequired assert
Testing code that shouldn't have been included with modoboa/modoboa#1330
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user