Ankush05 commited on
Commit
5c0ccf5
·
1 Parent(s): 457ad20

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -13,7 +13,11 @@ db = client["myapp"]
13
  col = db["users"]
14
 
15
 
16
-
 
 
 
 
17
 
18
 
19
  def Signup():
 
13
  col = db["users"]
14
 
15
 
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():