This is an automated email from the ASF dual-hosted git repository.
sebb 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 86c2bf0 Fix type error
86c2bf0 is described below
commit 86c2bf02dd3b68fc9150191b0fc90c13743700d3
Author: Sebb <[email protected]>
AuthorDate: Sat Nov 20 19:26:32 2021 +0000
Fix type error
---
server/plugins/defuzzer.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/plugins/defuzzer.py b/server/plugins/defuzzer.py
index aef4a92..c8f64e2 100644
--- a/server/plugins/defuzzer.py
+++ b/server/plugins/defuzzer.py
@@ -107,8 +107,8 @@ def defuzz(formdata: dict, nodate: bool = False,
list_override: typing.Optional[
raise ValueError("list_override must contain exactly one @
character")
listname, fqdn = list_override.split("@", 1)
else:
- fqdn = formdata.get("domain") # Must be provided
- listname = formdata.get("list") # Must be provided
+ fqdn = formdata.get("domain", '') # Must be provided
+ listname = formdata.get("list", '') # Must be provided
if not fqdn:
raise ValueError("You must specify a domain part of the mailing
list(s) to search, or * for wildcard search.")
if not listname: