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
9feef7c4cf
commit
0de26825c8
@ -32,7 +32,7 @@ class Stuff(Base):
|
||||
if instance is None:
|
||||
raise HTTPException(
|
||||
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:
|
||||
return instance
|
||||
|
Loading…
x
Reference in New Issue
Block a user