Skip to content

Commit

Permalink
feat: Change rogue continue to break
Browse files Browse the repository at this point in the history
  • Loading branch information
TomMcL committed Nov 16, 2023
1 parent ffc75ec commit 9165310
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vega_sim/scenario/fuzzed_markets/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -1502,7 +1502,7 @@ def step(self, vega_state):
wallet_name=self.wallet_name,
)
self.accepted_proposals += 1
continue
break
except (
HTTPError,
ProposalNotAcceptedError,
Expand Down
3 changes: 2 additions & 1 deletion vega_sim/scenario/fuzzed_markets/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ def __init__(
):
if perps_market_probability < 0 or perps_market_probability > 1:
raise ValueError(
f"'perps_market_probability' must be in range [0,1], got '{perps_market_probability}'"
"'perps_market_probability' must be in range [0,1], got"
f" '{perps_market_probability}'"
)

super().__init__(
Expand Down

0 comments on commit 9165310

Please sign in to comment.