You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2021/03/29 13:31:28 UTC

[incubator-ponymail-foal] 01/02: fix type test warnings, remote can be none

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 d3fad0210d2d3594ce9d510d4b5a35929aceb904
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Mon Mar 29 15:27:06 2021 +0200

    fix type test warnings, remote can be none
---
 server/plugins/session.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/plugins/session.py b/server/plugins/session.py
index b10c8f3..8d425d1 100644
--- a/server/plugins/session.py
+++ b/server/plugins/session.py
@@ -129,7 +129,7 @@ async def get_session(
     # If not in local memory, start a new session object
     session = SessionObject(server)
     session.database = await server.dbpool.get()
-    session.remote = request.remote
+    session.remote = request.remote or "??"
 
     # If a cookie was supplied, look for a session object in ES
     if session_id and session.database: