This commit is contained in:
Jakub Miazek
2023-04-10 21:42:13 +02:00
parent aa1b9ec867
commit ee1d241d23
5 changed files with 21 additions and 34 deletions

View File

@@ -29,9 +29,7 @@ class Nonsense(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={"Record not found": f"There is no record for requested name value : {name}"},
)
else:
return instance