You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2020/09/06 07:18:08 UTC
[incubator-ponymail-foal] branch master updated: make type tests
happy
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
The following commit(s) were added to refs/heads/master by this push:
new 16c43bb make type tests happy
16c43bb is described below
commit 16c43bbc64c3a7216b884a57921e868d08d1c156
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sun Sep 6 09:17:58 2020 +0200
make type tests happy
---
tools/archiver.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/archiver.py b/tools/archiver.py
index 9222a66..285032c 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -425,7 +425,7 @@ class Archiver(object): # N.B. Also used by import-mbox.py
# it would be UTF-8 bytes in cases of charset-less message bodies. It would
# also be nothing in case of html-only emails where html2text is not enabled.
generator_body = body if body and body.character_set else body and body.bytes or ""
- if body.html_as_source:
+ if body and body.html_as_source:
generator_body = ""
for generator in self.generator.split(" "):
if generator:
@@ -481,7 +481,7 @@ class Archiver(object): # N.B. Also used by import-mbox.py
"references": msg_metadata["references"],
"in-reply-to": irt,
"body": body.unflow() if body else "",
- "html_source_only": body.html_as_source,
+ "html_source_only": body and body.html_as_source or False,
"attachments": attachments,
}