Skip to content

Commit

Permalink
fix: clear error msg at each step
Browse files Browse the repository at this point in the history
  • Loading branch information
JoFrost committed May 14, 2024
1 parent f1ea3af commit 5447851
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lavague/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def run(self, objective, display=True):
context = "\n".join(nodes)
for _ in range(N_ATTEMPTS):
try:
error = ""
url = self.driver.current_url
success = True
action = action_engine.action_from_context(context, query)
Expand Down

0 comments on commit 5447851

Please sign in to comment.