Add exception logging in get_all function

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-03-06 10:55:39 -03:00
commit 5f9d3d5c40

View file

@ -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