You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2026/02/10 23:00:00 UTC
(incubator-ponymail-foal) branch master updated: Fix mypy errors
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 79f5a0f Fix mypy errors
79f5a0f is described below
commit 79f5a0f187749b5658e69adf782f10695bc9dc76
Author: Sebb <se...@apache.org>
AuthorDate: Tue Feb 10 22:59:54 2026 +0000
Fix mypy errors
---
server/endpoints/gravatar.py | 1 +
server/plugins/oauthGeneric.py | 2 +-
test/test_msgid.py | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/server/endpoints/gravatar.py b/server/endpoints/gravatar.py
index e77ba05..cbd190c 100644
--- a/server/endpoints/gravatar.py
+++ b/server/endpoints/gravatar.py
@@ -18,6 +18,7 @@
"""Caching proxy for Gravatars"""
import plugins.server
+import plugins.session
import aiohttp
import aiohttp.web
import base64
diff --git a/server/plugins/oauthGeneric.py b/server/plugins/oauthGeneric.py
index 4563f23..5b02f50 100644
--- a/server/plugins/oauthGeneric.py
+++ b/server/plugins/oauthGeneric.py
@@ -27,7 +27,7 @@ async def process(formdata: dict, _session, server) -> typing.Optional[dict]:
provider = server.config.oauth.providers.get(formdata["key"])
if not provider:
# should not happen, but just in case of client error
- return aiohttp.web.Response(headers={}, status=404, text="OAuth provider not found")
+ return None
oauth_url = provider.get('.oauth_url', '')
# Extract domain, allowing for :port
# Does not handle user/password prefix etc
diff --git a/test/test_msgid.py b/test/test_msgid.py
index ceb40dd..9febf05 100755
--- a/test/test_msgid.py
+++ b/test/test_msgid.py
@@ -2,6 +2,7 @@
import sys
import email
+import email.headerregistry
import gzip
from email.policy import default