Explorar o código

self._set_state(self.STATE_FAILED)

skyfffire hai 2 meses
pai
achega
7316244f70
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      s_erc20_to_mexc.py

+ 2 - 0
s_erc20_to_mexc.py

@@ -311,6 +311,8 @@ class ArbitrageProcess:
                 logger.error(msg)
                 logger.error(msg)
                 add_state_flow_entry(self.process_item, self.current_state, msg, "fail")
                 add_state_flow_entry(self.process_item, self.current_state, msg, "fail")
 
 
+                self._set_state(self.STATE_FAILED)
+
                 return
                 return
 
 
             # 查询交易所订单状态
             # 查询交易所订单状态