mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Fix KeyError on router error logging (#8769)
This commit is contained in:
parent
205f0234e8
commit
6491142364
@ -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"]}',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user