Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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():
|