diff --git a/cf/functions.py b/cf/functions.py index 8da0b6d8b6..2674caa319 100644 --- a/cf/functions.py +++ b/cf/functions.py @@ -3228,11 +3228,10 @@ def _DEPRECATION_ERROR_ATTRIBUTE( ): if removed_at: removed_at = f" and will be removed at version {removed_at}" - + raise DeprecationError( f"{instance.__class__.__name__} attribute {attribute!r} has been " - f"deprecated at version {version} and will be removed at version " - f"{removed_at}. {message}" + f"deprecated at version {version}{removed_at}. {message}" )