fix: Remove nested try block and simplify error handling in trade update

This commit is contained in:
Bobby (aider) 2025-02-10 23:00:24 -08:00
parent a99deffa9f
commit b71a3eef38

View File

@ -270,8 +270,7 @@ def trading_journal_page():
'order_type': new_order_type, 'order_type': new_order_type,
'notes': new_notes 'notes': new_notes
} }
try:
update_trade(trade_id, updates) update_trade(trade_id, updates)
st.success("Trade updated successfully!") st.success("Trade updated successfully!")
st.experimental_rerun() st.experimental_rerun()