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 544e081 fix response types
544e081 is described below
commit 544e081e82e8e67115ea04d8557b448c5f1ab2ed
Author: Daniel Gruno <[email protected]>
AuthorDate: Sun Jun 6 12:48:05 2021 +0200
fix response types
---
server/endpoints/stats.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/endpoints/stats.py b/server/endpoints/stats.py
index 18d97a5..e8008ab 100644
--- a/server/endpoints/stats.py
+++ b/server/endpoints/stats.py
@@ -29,7 +29,7 @@ import aiohttp.web
PYPONY_RE_PREFIX = re.compile(r"^([a-zA-Z]+:\s*)+")
-async def process(server: plugins.server.BaseServer, session:
plugins.session.SessionObject, indata: dict,) -> dict:
+async def process(server: plugins.server.BaseServer, session:
plugins.session.SessionObject, indata: dict,) -> typing.Union[dict,
aiohttp.web.Response]:
try:
query_defuzzed = plugins.defuzzer.defuzz(indata)