Skip to content

Commit

Permalink
Update agent_controller.py (All-Hands-AI#1004)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbren authored Apr 10, 2024
1 parent cd723ab commit 7f5d9c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opendevin/controller/agent_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ async def step(self, i: int):
print_with_color(observation, 'ERROR')
traceback.print_exc()
# TODO Change to more robust error handling
if 'The api_key client option must be set' or 'Incorrect API key provided:' in observation.content:
if 'The api_key client option must be set' in observation.content or 'Incorrect API key provided:' in observation.content:
raise
self.update_state_after_step()

Expand Down

0 comments on commit 7f5d9c7

Please sign in to comment.