mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-08-26 16:40:40 +03:00
exception update
This commit is contained in:
parent
9116d28417
commit
716768b141
@ -32,7 +32,7 @@ class Stuff(Base):
|
|||||||
if instance is None:
|
if instance is None:
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=status.HTTP_404_NOT_FOUND,
|
status_code=status.HTTP_404_NOT_FOUND,
|
||||||
detail={"Record not found": f"There is no record for requested name value : {name}"},
|
detail={"Not found": f"There is no record for requested: {name=}"},
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
return instance
|
return instance
|
||||||
|
Loading…
x
Reference in New Issue
Block a user