Skip to content

Commit

Permalink
fix: better way to return REQUEST if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
bsuttor committed Nov 28, 2024
1 parent 97da476 commit 53d63d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/z3c/jbot/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def getRequest():
try:
return site.request
except AttributeError:
return None
return getattr(site, "REQUEST", None)

try:
i = zope.security.management.getInteraction()
Expand Down

0 comments on commit 53d63d3

Please sign in to comment.