Skip to content

Commit

Permalink
Fix tests from clvm.tests (for clvm_rs). (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardkiss authored Feb 14, 2023
1 parent 26c9d9c commit 11bc246
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions clvm_tools/cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,16 @@ def launch_tool(args, tool_name, default_stage=0):
if use_rust:
time_parse_input = time.perf_counter()

cost, result = run_serialized_chia_program(
program_serialized,
arg_serialized,
max_cost,
MEMPOOL_MODE if (args.mempool or args.strict) else 0,
)
try:
cost, result = run_serialized_chia_program(
program_serialized,
arg_serialized,
max_cost,
MEMPOOL_MODE if (args.mempool or args.strict) else 0,
)
except ValueError as ve:
err = EvalError(ve.args[0], ve.args[1])
raise err
time_done = time.perf_counter()
result = SExp.to(result)
else:
Expand Down

0 comments on commit 11bc246

Please sign in to comment.