fix: Resolve indentation error and remove duplicate exception handler in trading plan page

This commit is contained in:
Bobby (aider) 2025-02-11 18:44:57 -08:00
parent 11660b3449
commit f0065af3a2

View File

@ -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")