Ankush05 commited on
Commit
598eeb3
·
1 Parent(s): 5c0ccf5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,8 +16,8 @@ col = db["users"]
16
  try:
17
  client.admin.command('ping')
18
  print("Connection Established Successfully!")
19
- except pymongo.errors.ConnectionFailure:
20
- print("Not Connected")
21
 
22
 
23
  def Signup():
 
16
  try:
17
  client.admin.command('ping')
18
  print("Connection Established Successfully!")
19
+ except Exception as e:
20
+ print(f"Not Connected: {e}")
21
 
22
 
23
  def Signup():