Spaces:
Sleeping
Sleeping
Vineetiitg commited on
Commit ·
5238776
1
Parent(s): 4ce35de
fix(ui): add missing error handling in index reset except block
Browse files
ui/app.py
CHANGED
|
@@ -354,6 +354,7 @@ def render_admin_portal_tab():
|
|
| 354 |
st.json(post_json("/admin/reset"))
|
| 355 |
st.success("Index reset successfully.")
|
| 356 |
except requests.RequestException as exc:
|
|
|
|
| 357 |
st.markdown('</div>', unsafe_allow_html=True)
|
| 358 |
|
| 359 |
st.markdown('<div class="glass-card">', unsafe_allow_html=True)
|
|
|
|
| 354 |
st.json(post_json("/admin/reset"))
|
| 355 |
st.success("Index reset successfully.")
|
| 356 |
except requests.RequestException as exc:
|
| 357 |
+
st.error(f"Reset failed: {exc}")
|
| 358 |
st.markdown('</div>', unsafe_allow_html=True)
|
| 359 |
|
| 360 |
st.markdown('<div class="glass-card">', unsafe_allow_html=True)
|