Arcader7171 commited on
Commit
c6e081e
·
verified ·
1 Parent(s): 54c1ffa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -93,9 +93,9 @@ def loginAPI():
93
  )
94
  except Exception as e:
95
  return f"Exception - {e}", 500
96
- #if response["count"] == None:
97
- # return
98
  data = response.data
 
 
99
  return data, 200
100
  """
101
  data = response["data"]
 
93
  )
94
  except Exception as e:
95
  return f"Exception - {e}", 500
 
 
96
  data = response.data
97
+ if data == []:
98
+ return make_response(json.dump{"message": "Username does not exist"}), 401
99
  return data, 200
100
  """
101
  data = response["data"]