bump project deps

This commit is contained in:
Jakub Miazek
2022-12-16 08:33:41 +01:00
parent 94bbb885e8
commit 83946d52f7
3 changed files with 201 additions and 196 deletions

View File

@@ -20,7 +20,7 @@ async def create_multi_stuff(payload: list[StuffSchema], db_session: AsyncSessio
await db_session.commit()
except SQLAlchemyError as ex:
# logger.exception(ex)
raise HTTPException(status_code=status.HTTP_422_UNPROCESSABLE_ENTITY, detail=repr(ex))
raise HTTPException(status_code=status.HTTP_422_UNPROCESSABLE_ENTITY, detail=repr(ex)) from ex
else:
logger.info(f"{len(stuff_instances)} instances of Stuff inserted into database.")
return True