jaothan commited on
Commit
fcf4688
·
verified ·
1 Parent(s): 04d75b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -10,10 +10,10 @@ from typing import List
10
  MONGO_URI = os.getenv("MONGO_URI")
11
  # Connect to MongoDB Atlas
12
  client = MongoClient(MONGO_URI, tls=True, tlsCAFile=certifi.where())
13
-
14
  # Test the connection
15
- try:
16
- client.admin.command('ping')
17
- print("Pinged your deployment. You successfully connected to MongoDB!")
18
- except Exception as e:
19
- print(f"Error: {e}")
 
10
  MONGO_URI = os.getenv("MONGO_URI")
11
  # Connect to MongoDB Atlas
12
  client = MongoClient(MONGO_URI, tls=True, tlsCAFile=certifi.where())
13
+ print(client)
14
  # Test the connection
15
+ #try:
16
+ # client.admin.command('ping')
17
+ # print("Pinged your deployment. You successfully connected to MongoDB!")
18
+ #except Exception as e:
19
+ # print(f"Error: {e}")