diff options
author | Jason Madden <jamadden@gmail.com> | 2016-08-04 07:30:04 -0500 |
---|---|---|
committer | Jason Madden <jamadden@gmail.com> | 2016-08-04 07:30:04 -0500 |
commit | 2c7af36ae6217a02e614d8af14ca06a20b7147b1 (patch) | |
tree | 436cdab2591fe776a6844c44b49d53f6da06ff98 /CHANGES.rst | |
parent | 1bf6305c14f8e7d4c683b30cd8a7e72c4cf2049e (diff) | |
download | zope-traversing-2c7af36ae6217a02e614d8af14ca06a20b7147b1.tar.gz |
Gracefully handle UnicodeEncodeError on python 2.handle-unicode-gracefully
This can be produced when doing an attribute lookup. Turn it into a
LocationError (or the default value).
zope.container.traversal.ContainerTraversable was doing this already,
see https://github.com/zopefoundation/zope.container/blob/master/src/zope/container/traversal.py#L105
Diffstat (limited to 'CHANGES.rst')
-rw-r--r-- | CHANGES.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CHANGES.rst b/CHANGES.rst index 9d97773..3b81f8c 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -8,6 +8,8 @@ Changes - Drop support for Python 2.6. +- Gracefully handle ``UnicodeEncodeError`` that can be produced when + doing attribute lookup on Python 2 by instead raising a ``LocationError``. 4.0.0 (2014-03-21) ------------------ @@ -283,4 +285,3 @@ No further changes since 3.4.0a1. Initial release as a separate project, corresponds to ``zope.traversing`` from Zope 3.4.0a1 - |