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 82c7a2c  fix type test: list could be None, set a default
82c7a2c is described below

commit 82c7a2c80311c6b37d98ea55fa526635b06bd953
Author: Daniel Gruno <[email protected]>
AuthorDate: Mon Mar 29 17:18:22 2021 +0200

    fix type test: list could be None, set a default
---
 server/endpoints/mgmt.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/endpoints/mgmt.py b/server/endpoints/mgmt.py
index 19a3640..f7e91d4 100644
--- a/server/endpoints/mgmt.py
+++ b/server/endpoints/mgmt.py
@@ -66,7 +66,7 @@ async def process(
     elif action == "edit":
         new_from = indata.get("from")
         new_subject = indata.get("subject")
-        new_list = "<" + indata.get("list").strip("<>").replace("@", ".") + 
">"  # [email protected] -> <foo.bar.baz>
+        new_list = "<" + indata.get("list", "").strip("<>").replace("@", ".") 
+ ">"  # [email protected] -> <foo.bar.baz>
         private = True if indata.get("private", "no") == "yes" else False
         new_body = indata.get("body")
         email = await plugins.mbox.get_email(session, permalink=doc)

Reply via email to