From f9e655977aa4e8c2b7baba037af0513515ccd973 Mon Sep 17 00:00:00 2001 From: wlorenzetti Date: Fri, 29 Sep 2023 09:19:26 +0200 Subject: [PATCH] Check for testing. --- g3w-admin/usersmanage/receivers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g3w-admin/usersmanage/receivers.py b/g3w-admin/usersmanage/receivers.py index 91d664561..c80cdda1c 100644 --- a/g3w-admin/usersmanage/receivers.py +++ b/g3w-admin/usersmanage/receivers.py @@ -77,7 +77,7 @@ def send_email_to_user(sender, **kwargs): # Send email to user # ---------------------------------------------------------- - scheme = "https" if sender.request.is_secure() else "http" + scheme = "https" if hasattr(sender.request, 'is_secure') and sender.request.is_secure() else "http" context = { "scheme": scheme, "site": get_current_site(sender.request),