Update app.py
Browse files
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}")
|