diff --git a/CHANGELOG.md b/CHANGELOG.md index d912699e823d6143b4cbe6629b06167f1a178ac6..dfd5322b35070e99aa07928b18f73c4832e9227a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ -# v.25.a3 +# v2.25.6 +* deprecated rethrow_as * fixed circular import # v2.25.5 diff --git a/satella/__init__.py b/satella/__init__.py index e4b1c62145f41e5e37fad3e392eb06a2188cbd91..4416575de064a37ca893567e707beee981024b7f 100644 --- a/satella/__init__.py +++ b/satella/__init__.py @@ -1 +1 @@ -__version__ = '2.25.6a3' +__version__ = '2.25.6' diff --git a/satella/coding/recast_exceptions.py b/satella/coding/recast_exceptions.py index 6ab8ff6a75c55277089f125a0d7e990570bf97db..7605a8753b2d429dd8f49d81cad9df594d14f35c 100644 --- a/satella/coding/recast_exceptions.py +++ b/satella/coding/recast_exceptions.py @@ -2,6 +2,7 @@ import inspect import logging import threading import typing as tp +import warnings from .decorators.decorators import wraps from .typing import ExceptionClassType, T, NoArgCallable, ExceptionList @@ -238,6 +239,7 @@ class rethrow_as: exception_preprocessor: tp.Optional[tp.Callable[[Exception], str]] = repr, returns=None, returns_factory: tp.Optional[NoArgCallable[tp.Any]] = None): + warnings.warn('Deprecated, use reraise_as', DeprecationWarning) try: a, b = pairs # throws ValueError op = issubclass(b, BaseException) # throws TypeError