π OpenHands: AI-Driven Development
Fix KeyError on router error logging (#8769)
Graham Neubig649114236445
diff --git a/openhands/runtime/impl/action_execution/action_execution_client.py b/openhands/runtime/impl/action_execution/action_execution_client.pyindex 159d02e985..b35e0be92e 100644--- a/openhands/runtime/impl/action_execution/action_execution_client.py+++ b/openhands/runtime/impl/action_execution/action_execution_client.py@@ -404,7 +404,7 @@ class ActionExecutionClient(Runtime):if response.status_code != 200:self.log('warning', f'Failed to update MCP server: {response.text}')else:- if result['router_error_log']:+ if result.get('router_error_log'):self.log('warning',f'Some MCP servers failed to be added: {result["router_error_log"]}',