Skip to content

Commit 9f4b964

Browse files
committed
fix: resolve UnboundLocalError in production engine logging
1 parent 1aec23f commit 9f4b964

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openspace_openhands_evolution/production_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ async def _execute_once(self, task, skills: List[Dict] = None) -> Dict:
143143
end_time = datetime.now(timezone.utc)
144144
duration = (end_time - start_time).total_seconds()
145145

146-
logger.info(f"Task {task.id} completed in {duration:.2f}s, success={result['success']}")
146+
logger.info(f"Task {task.id} completed in {duration:.2f}s, success={validation.get('success', False)}")
147147

148148
# 构建最终结果
149149
result = {

0 commit comments

Comments
 (0)