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
commit 922069e894e7153bf879bf50bf5b54f3a1d17c16 Author: Daniel Gruno <[email protected]> AuthorDate: Mon Mar 29 11:42:56 2021 +0200 get_email can return nothing.. --- server/plugins/mbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/plugins/mbox.py b/server/plugins/mbox.py index a6984d2..e89cfe2 100644 --- a/server/plugins/mbox.py +++ b/server/plugins/mbox.py @@ -141,7 +141,7 @@ async def fetch_children(session, pdoc, counter=0, pdocs=None, short=False): thread = [] emails = [] - for doc in docs: + for doc in docs or []: # Make sure email is accessible if plugins.aaa.can_access_email(session, doc): if doc["mid"] not in pdocs:
