Fix KeyError on router error logging (#8769)

This commit is contained in:
Graham Neubig
2025-05-28 15:59:18 -04:00
committed by GitHub
parent 205f0234e8
commit 6491142364

View File

@@ -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"]}',