From 716768b1413a95d5c876f4980c8714e95d9295ad Mon Sep 17 00:00:00 2001 From: grillazz Date: Wed, 22 Dec 2021 20:25:08 +0100 Subject: [PATCH] exception update --- the_app/models/stuff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/the_app/models/stuff.py b/the_app/models/stuff.py index 2eafb3c..a6d07ae 100644 --- a/the_app/models/stuff.py +++ b/the_app/models/stuff.py @@ -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