From a253964065e7069f5ed125e12b41074fc70ea78e Mon Sep 17 00:00:00 2001 From: Charlie Date: Wed, 24 Jul 2024 09:37:06 +0100 Subject: [PATCH] fix: handle missing passive order --- vega_sim/scenario/common/agents.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vega_sim/scenario/common/agents.py b/vega_sim/scenario/common/agents.py index c3d7a9709..028c9e94f 100644 --- a/vega_sim/scenario/common/agents.py +++ b/vega_sim/scenario/common/agents.py @@ -4088,7 +4088,7 @@ def step(self, vega_state: VegaState): self.vega.wait_for_datanode_sync() passive_order = self.__get_order(self.__passive_reference) aggressive_order = self.__get_order(self.__aggressive_reference) - if passive_order is None and aggressive_order is None: + if (passive_order is None) or (aggressive_order is None): if self.vega.get_blockchain_time(in_seconds=True) < self.__start + 60: return logger.warning(