oauth-backend/lib/utils/try_catch.py

5 lines
134 B
Python

async def try_catch(coro):
try:
return await coro
except Exception as e:
print(f"[ERROR] {coro} failed: {e}")