Add exception logging in get_all function
This commit is contained in:
parent
dc1c092fe7
commit
5f9d3d5c40
1 changed files with 1 additions and 0 deletions
|
|
@ -48,6 +48,7 @@ def get_all(
|
|||
all_types_dict = get_all_types_dict(settings_service)
|
||||
return all_types_dict
|
||||
except Exception as exc:
|
||||
logger.exception(exc)
|
||||
raise HTTPException(status_code=500, detail=str(exc)) from exc
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue