diff --git a/src/masonite/helpers/misc.py b/src/masonite/helpers/misc.py index 70cc9f7a9..39d90fa42 100644 --- a/src/masonite/helpers/misc.py +++ b/src/masonite/helpers/misc.py @@ -105,6 +105,8 @@ def __new__(cls, *args): def deprecated(message): + warnings.simplefilter("default", DeprecationWarning) + def deprecated_decorator(func): def deprecated_func(*args, **kwargs): warnings.warn( @@ -112,7 +114,6 @@ def deprecated_func(*args, **kwargs): category=DeprecationWarning, stacklevel=2, ) - warnings.simplefilter("default", DeprecationWarning) return func(*args, **kwargs) return deprecated_func