Skip to content

Commit

Permalink
destroy in right function
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrunel committed Aug 29, 2024
1 parent 4e507c8 commit 4ffd760
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lavague-core/lavague/core/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ def evaluate(
print("ERROR: ", i)
traceback.print_exc()
nodes = []
if driver:
driver.destroy()
nodes = "\n".join(nodes)
results.at[i, "result_nodes"] = nodes
results.at[i, "recall"] = (
Expand Down Expand Up @@ -208,8 +210,6 @@ def evaluate(
print("ERROR: ", i)
traceback.print_exc()
test_action = FAIL_ACTION
if driver:
driver.destroy()
results.at[i, "correct_action"] = action["name"] == test_action["name"]
results.at[i, "correct_xpath"] = (
normalize_xpath(action["args"]["xpath"])
Expand Down

0 comments on commit 4ffd760

Please sign in to comment.