Skip to content

Commit

Permalink
Check for testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
wlorenzetti committed Sep 29, 2023
1 parent ecfe4e5 commit f9e6559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion g3w-admin/usersmanage/receivers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit f9e6559

Please sign in to comment.