π OpenHands: AI-Driven Development
Update agent_controller.py (#1004)
Robert Brennan7f5d9c7d92a6
diff --git a/opendevin/controller/agent_controller.py b/opendevin/controller/agent_controller.pyindex 791eaae2a3..a065de6f30 100644--- a/opendevin/controller/agent_controller.py+++ b/opendevin/controller/agent_controller.py@@ -141,7 +141,7 @@ class AgentController: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:raiseself.update_state_after_step()