exception update

This commit is contained in:
grillazz 2021-12-22 20:25:08 +01:00
parent 9116d28417
commit 716768b141

View File

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