diff --git a/prediction_market_agent/agents/known_outcome_agent/deploy.py b/prediction_market_agent/agents/known_outcome_agent/deploy.py index 106506cb..ced4f783 100644 --- a/prediction_market_agent/agents/known_outcome_agent/deploy.py +++ b/prediction_market_agent/agents/known_outcome_agent/deploy.py @@ -56,8 +56,6 @@ def pick_markets(self, markets: list[AgentMarket]) -> list[AgentMarket]: return picked_markets def answer_binary_market(self, market: AgentMarket) -> bool | None: - # The answer has already been determined in `pick_markets` so we just - # return it here. try: answer = get_known_outcome( model=self.model, @@ -68,6 +66,7 @@ def answer_binary_market(self, market: AgentMarket) -> bool | None: print( f"Error: Failed to predict market {market.id=} {market.question=}: {e}" ) + answer = None if answer and answer.has_known_outcome(): print( f"Picking market {market.id=} {market.question=} with answer {answer.result=}"