Skip to content

Commit

Permalink
Post-merge fix for PR #44 (#45)
Browse files Browse the repository at this point in the history
* Post-merge fix for PR #44
  • Loading branch information
evangriffiths authored Apr 3, 2024
1 parent c062130 commit 4633fea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions prediction_market_agent/agents/known_outcome_agent/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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=}"
Expand Down

0 comments on commit 4633fea

Please sign in to comment.