瀏覽代碼

Update agent_controller.py (#1004)

Robert Brennan 1 年之前
父節點
當前提交
7f5d9c7d92
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      opendevin/controller/agent_controller.py

+ 1 - 1
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:
                 raise
         self.update_state_after_step()