Spaces:
Runtime error
Runtime error
File size: 312 Bytes
ed0b977 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import os
from dotenv import load_dotenv
load_dotenv()
uri = os.environ.get("MONGO_URI")
if uri:
if "<db_password>" in uri:
print("ERROR: Placeholder <db_password> found in MONGO_URI.")
else:
print(f"MONGO_URI found: {uri[:15]}...{uri[-10:]}")
else:
print("MONGO_URI NOT found.")
|