Jon Solow
commited on
Commit
·
b54d7d2
1
Parent(s):
0831277
Add exception catch when loading team
Browse files
src/pages/10_Set_Your_Lineup.py
CHANGED
@@ -133,7 +133,11 @@ def get_page():
|
|
133 |
|
134 |
if st.button("Refresh Data"):
|
135 |
st.rerun()
|
136 |
-
|
|
|
|
|
|
|
|
|
137 |
|
138 |
player_options = load_options()
|
139 |
|
|
|
133 |
|
134 |
if st.button("Refresh Data"):
|
135 |
st.rerun()
|
136 |
+
try:
|
137 |
+
existing_selections = get_user_team(st.session_state["logged_in_user"])
|
138 |
+
except Exception:
|
139 |
+
st.write("Sorry error occurred loading team. Please try refreshing page.")
|
140 |
+
st.stop()
|
141 |
|
142 |
player_options = load_options()
|
143 |
|