Skip to content

Commit

Permalink
- Make Products.PageTemplate engine compatible with Chameleon 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake committed Oct 31, 2022
1 parent 1d3978a commit 20aa164
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ https://zope.readthedocs.io/en/2.13/CHANGES.html

- Update dependencies to the latest releases for each supported Python version.

- Make Products.PageTemplate engine compatible with Chameleon 3.10.


4.8.3 (2022-10-31)
------------------
Expand Down
2 changes: 1 addition & 1 deletion src/Products/PageTemplates/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def vars(self):
def getValue(self, name, default=None):
try:
return self._c_context[name]
except NameError:
except (NameError, KeyError):
return default

get = getValue
Expand Down

0 comments on commit 20aa164

Please sign in to comment.