Skip to content

Commit

Permalink
closes #47
Browse files Browse the repository at this point in the history
  • Loading branch information
bckohan committed May 6, 2023
1 parent 3736646 commit 3e2c81f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ sphinxcontrib-htmlhelp==2.0.1; python_version >= "3.5"
sphinxcontrib-jsmath==1.0.1; python_version >= "3.5"
sphinxcontrib-qthelp==1.0.3; python_version >= "3.5"
sphinxcontrib-serializinghtml==1.1.5; python_version >= "3.5"
enum-properties==1.5.1
enum-properties==1.5.2
5 changes: 5 additions & 0 deletions doc/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Change Log
==========

v1.5.2
======

* Fixed `_missing_ allows exceptions through that are not ValueError, TypeError or KeyError <https://github.com/bckohan/enum-properties/issues/47>`_

v1.5.1
======

Expand Down
4 changes: 2 additions & 2 deletions enum_properties/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
cached_property = property # pylint: disable=C0103


VERSION = (1, 5, 1)
VERSION = (1, 5, 2)

__title__ = 'Enum Properties'
__version__ = '.'.join(str(i) for i in VERSION)
Expand Down Expand Up @@ -235,7 +235,7 @@ def _missing_(cls, value): # pylint: disable=R0911
if isinstance(val, str):
return cls._ep_isymmetric_map_[_do_casenorm(val)]

except (KeyError, TypeError, ValueError):
except Exception: # pylint: disable=W0703
pass

return super()._missing_(value)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "enum-properties"
version = "1.5.1"
version = "1.5.2"
description = "Add properties and method specializations to Python enumeration values with a simple declarative syntax."
authors = ["Brian Kohan <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 3e2c81f

Please sign in to comment.