Skip to content

Commit

Permalink
work around situations in which REQUEST has not been set up properly
Browse files Browse the repository at this point in the history
  • Loading branch information
d-maurer committed Mar 6, 2020
1 parent f2caa2c commit d15014f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Products/PluginIndexes/unindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def getRequestCache(self):

cache = None
REQUEST = aq_get(self, 'REQUEST', None)
if REQUEST is not None:
if hasattr(REQUEST, "get"):
cache_container = REQUEST.get("__catalog_cache__")
if cache_container is None:
# we use a `WeakKeyDictionary` (rather than the
Expand Down

0 comments on commit d15014f

Please sign in to comment.