decode_b64_part always returns something
This commit is contained in:
parent
ec1fda254a
commit
c148b94be1
1 changed files with 2 additions and 0 deletions
|
@ -101,6 +101,8 @@ def decode_email(message: email.message.Message) -> email.message.Message:
|
||||||
b64_str,
|
b64_str,
|
||||||
decoded_b64_str
|
decoded_b64_str
|
||||||
)
|
)
|
||||||
|
|
||||||
|
return decoded_bytes
|
||||||
|
|
||||||
quopri_decoded_message = email.message_from_bytes(decoded_bytes)
|
quopri_decoded_message = email.message_from_bytes(decoded_bytes)
|
||||||
if quopri_decoded_message.is_multipart():
|
if quopri_decoded_message.is_multipart():
|
||||||
|
|
Loading…
Reference in a new issue