From f0065af3a275fc174194d80a41f13b1e83c088ef Mon Sep 17 00:00:00 2001 From: "Bobby (aider)" Date: Tue, 11 Feb 2025 18:44:57 -0800 Subject: [PATCH] fix: Resolve indentation error and remove duplicate exception handler in trading plan page --- src/streamlit_app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/streamlit_app.py b/src/streamlit_app.py index d11e7b9..331ec03 100644 --- a/src/streamlit_app.py +++ b/src/streamlit_app.py @@ -1078,6 +1078,7 @@ def trading_plan_page(): update_trading_plan(plan) st.success("Plan updated successfully!") st.experimental_set_query_params(rerun=True) + # Add delete button if st.button("Delete Plan", key="delete_plan_button"): try: @@ -1086,8 +1087,6 @@ def trading_plan_page(): st.experimental_set_query_params(rerun=True) except Exception as e: st.error(f"Error deleting plan: {str(e)}") - except Exception as e: - st.error(f"Error updating plan: {str(e)}") else: st.info("No plans available to edit")