Skip to content

Commit

Permalink
Fix error when Plone site is not yet set as in first index_html call …
Browse files Browse the repository at this point in the history
…on Zope. (#21)
  • Loading branch information
bsuttor authored Nov 29, 2024
1 parent d022ba5 commit a0469d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
Changes
=======

2.1 (unreleased)
2.0.1 (unreleased)
----------------

- Nothing changed yet.
- Fix error when Plone site is not yet set as in first index_html call on Zope.
[bsuttor]


2.0 (2023-05-04)
Expand Down
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 site.REQUEST
return getattr(site, "REQUEST", None)

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

0 comments on commit a0469d4

Please sign in to comment.