CosmoAI commited on
Commit
f28ea0a
1 Parent(s): b085dff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -16,6 +16,12 @@ client = MongoClient(uri, tlsCertificateKeyFile="cert.pem")
16
  db = client["reshav"]
17
  col=db["mine"]
18
 
 
 
 
 
 
 
19
  def login():
20
  st.title("Login")
21
  data = json.load(open("database/data.json"))
 
16
  db = client["reshav"]
17
  col=db["mine"]
18
 
19
+ try:
20
+ client.admin.command("ping")
21
+ print("Connection Established!")
22
+ except Exception as e:
23
+ print(e)
24
+
25
  def login():
26
  st.title("Login")
27
  data = json.load(open("database/data.json"))