Skip to content

Devika is the first open-source implementation of an Agentic Software Engineer. Initially started as an open-source alternative to Devin.

Python

Update patcher.py for Key Error while patching code with error (#324)

Md Zuhair7cfe8c7a19e6
diff --git a/src/agents/patcher/patcher.py b/src/agents/patcher/patcher.py
index b3108dd..47fe6c8 100644
--- a/src/agents/patcher/patcher.py
+++ b/src/agents/patcher/patcher.py
@@ -87,9 +87,9 @@ class Patcher:
return f"~~~\n{response}\n~~~"
def emulate_code_writing(self, code_set: list, project_name: str):
- for file in code_set:
- file = file["file"]
- code = file["code"]
+ for current_file in code_set:
+ file = current_file["file"]
+ code = current_file["code"]
new_state = AgentState().new_state()
new_state["internal_monologue"] = "Writing code..."