fix: Remove nested try block and simplify error handling in trade update
This commit is contained in:
parent
a99deffa9f
commit
b71a3eef38
@ -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()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user