Skip to content

Commit

Permalink
fix: none return from sampling
Browse files Browse the repository at this point in the history
Co-Authored-By: Adamantios Zaras <[email protected]>
  • Loading branch information
keshav1998 and Adamantios committed Dec 6, 2024
1 parent cc08251 commit 769e7a7
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,7 @@ def _sample(self) -> Optional[int]:

# sample a bet using the priority logic
idx = self._sampled_bet_idx(available_bets)
if idx:
sampled_bet = self.bets[idx]
else:
return None
sampled_bet = self.bets[idx]

# fetch the liquidity of the sampled bet and cache it
liquidity = sampled_bet.scaledLiquidityMeasure
Expand Down

0 comments on commit 769e7a7

Please sign in to comment.