aboutsummaryrefslogtreecommitdiff
path: root/app/apis.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2021-06-06 15:50:01 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2021-06-06 15:50:01 +0530
commitad073ba1ceb309881ff5cef0a80cf32baa825d03 (patch)
treed50537eb7663a4a9a3b99ea7906698657bc391f0 /app/apis.py
parent812220acbfd41aea0382fcd9a37a989a4b091d66 (diff)
parentaaa585e3c27b9b2789d54a93a7a9b3cd04e2cce8 (diff)
Merge branch 'master' of github.com:navanchauhan/SaaS-in-a-Flask
Diffstat (limited to 'app/apis.py')
-rw-r--r--app/apis.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/apis.py b/app/apis.py
index b81882e..69bf222 100644
--- a/app/apis.py
+++ b/app/apis.py
@@ -14,7 +14,7 @@ async def API_Version():
async def API_User_Details(email: str):
user = models.User.query.filter_by(email=email).first()
try:
- assert user != None
+ assert user is not None
except AssertionError:
raise HTTPException(status_code=404, detail="User Not Found")
return {"first_name": user.first_name, "last_name": user.last_name}