Modify order API hangs when trying to modify order that just got executed

Hi. I have code in python, where I get all the open orders from orderbook and modify them based on some parameters. However, before I could modify the order, the order got executed and the code gets stuck at that point, instead of returning an error response. Can you please modify your backend code to send an error message when trying to modify an order which just got executed? Thanks.

PS: I am using modify basket orders API function, not single order.

2
2 replies