Spaces:
Runtime error
Runtime error
Yew Chong
commited on
Commit
•
8373e84
1
Parent(s):
1174165
firestore
Browse files- db_firestore.py +2 -0
db_firestore.py
CHANGED
@@ -7,6 +7,8 @@ from dotenv import load_dotenv
|
|
7 |
load_dotenv()
|
8 |
try:
|
9 |
os.environ["FIREBASE_CREDENTIAL"] = dotenv.get_key(dotenv.find_dotenv(), "FIREBASE_CREDENTIAL")
|
|
|
|
|
10 |
except TypeError:
|
11 |
import streamlit as st
|
12 |
os.environ["FIREBASE_CREDENTIAL"] = st.secrets["FIREBASE_CREDENTIAL"]
|
|
|
7 |
load_dotenv()
|
8 |
try:
|
9 |
os.environ["FIREBASE_CREDENTIAL"] = dotenv.get_key(dotenv.find_dotenv(), "FIREBASE_CREDENTIAL")
|
10 |
+
if os.environ.get["FIREBASE_CREDENTIAL"] == None:
|
11 |
+
raise TypeError
|
12 |
except TypeError:
|
13 |
import streamlit as st
|
14 |
os.environ["FIREBASE_CREDENTIAL"] = st.secrets["FIREBASE_CREDENTIAL"]
|