in aidial_assistant/utils/exceptions.py [0:0]
def unhandled_exception_handler(func):
@wraps(func)
async def wrapper(*args, **kwargs):
try:
return await func(*args, **kwargs)
except Exception as e:
logger.exception("Unhandled exception")
raise _to_http_exception(e)
return wrapper