We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c22234 commit 2bcd955Copy full SHA for 2bcd955
app/models/base.py
@@ -79,6 +79,6 @@ async def save_or_update(self, db: AsyncSession):
79
raise HTTPException(
80
status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
81
detail=repr(exception),
82
- )
+ ) from exception
83
finally:
84
await db.close()
0 commit comments