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 16b2631 default to empty string rather than None, so md5 can process
if needed
16b2631 is described below
commit 16b2631262847f40673f65db7b5c81e3f6757a09
Author: Daniel Gruno <[email protected]>
AuthorDate: Fri Dec 10 22:07:26 2021 +0100
default to empty string rather than None, so md5 can process if needed
---
server/plugins/messages.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/plugins/messages.py b/server/plugins/messages.py
index 059e332..58f4c97 100644
--- a/server/plugins/messages.py
+++ b/server/plugins/messages.py
@@ -499,7 +499,7 @@ class ThreadConstructor:
for cur_email in sorted(self.emails, key=lambda x: x["epoch"]):
author = cur_email.get("from")
if author not in self.authors:
- self.authors[author] = [0, cur_email.get("gravatar")]
+ self.authors[author] = [0, cur_email.get("gravatar", "")]
self.authors[author][0] += 1
subject = cur_email.get("subject", "").replace(
"\n", ""