Let's say I have an async function like this:
async def foobar(argOne, argTwo, argThree):
print(argOne, argTwo, argThree)
I want to make a decorator and use it on this function in a way that it wraps the above code in a try except statement like this:
try:
print(argOne, argTwo, argThree)
except:
print('Something went wrong.)
Is there any way to do this?