I want to make an decorator which will take an another decorator function, as an argument.
And an decorator will do additional work.
def raise_error(func):
def wrapper(*args, **kwargs):
print('hello from decorator')
return func(*args, **kwargs)
return wrapper
@raise_error
def hello():
return 'Hellom from function'
print(hello())
Technically, I can to write an decorator which will be take, raise_error decorator, and do some additional flow, inside the raise_error
decorator?
Thank you in advance.