Commit 9ac0448d authored by Lynn Cyrin's avatar Lynn Cyrin

dont crash if .env is not found

parent aeb8fc24
Pipeline #69235 passed with stage
......@@ -29,7 +29,8 @@ CONFIG={
'PORT': 5000,
}
CONFIG.update(dotenv.parse_dotenv(BASE_PATH+'/.env'))
try: CONFIG.update(dotenv.parse_dotenv(BASE_PATH+'/.env'))
except FileNotFoundError: pass
for k, v in CONFIG.items(): os.environ[k] = str(v)
logging.basicConfig(stream=sys.stdout)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment