diff --git a/prediction_market_agent_tooling/deploy/agent.py b/prediction_market_agent_tooling/deploy/agent.py index 6e451f2e..f93abb5c 100644 --- a/prediction_market_agent_tooling/deploy/agent.py +++ b/prediction_market_agent_tooling/deploy/agent.py @@ -404,11 +404,13 @@ def process_market( self.update_langfuse_trace_by_market(market_type, market) logger.info(f"Processing market {market.question=} from {market.url=}.") + answer: ProbabilisticAnswer | None if verify_market and not self.verify_market(market_type, market): logger.info(f"Market '{market.question}' doesn't meet the criteria.") - return None - - answer = self.answer_binary_market(market) + answer = None + else: + answer = self.answer_binary_market(market) + processed_market = ( ProcessedMarket(answer=answer) if answer is not None else None )