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 c9945d7  default to None instead of False (aka optional)
c9945d7 is described below

commit c9945d75283ae9db1fe07505ff7ecbd39b2b85a7
Author: Daniel Gruno <[email protected]>
AuthorDate: Mon Jun 7 09:17:49 2021 +0200

    default to None instead of False (aka optional)
---
 server/endpoints/mbox.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/endpoints/mbox.py b/server/endpoints/mbox.py
index 082e78c..cd584ab 100644
--- a/server/endpoints/mbox.py
+++ b/server/endpoints/mbox.py
@@ -33,7 +33,7 @@ async def process(
     domain = indata.get("domain", "_")
     
     try:
-        query_defuzzed = plugins.defuzzer.defuzz(indata, list_override="@" in 
lid and lid)
+        query_defuzzed = plugins.defuzzer.defuzz(indata, list_override="@" in 
lid and lid or None)
     except AssertionError as e:  # If defuzzer encounters syntax errors, it 
will throw an AssertionError
         return aiohttp.web.Response(headers={"content-type": "text/plain",}, 
status=500, text=str(e))
     results = await plugins.messages.query(session, query_defuzzed, 
query_limit=server.config.database.max_hits,)

Reply via email to