fix: Resolve indentation error and remove duplicate exception handler in trading plan page
This commit is contained in:
parent
11660b3449
commit
f0065af3a2
@ -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")
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user