We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d22a6ab commit 2ff844dCopy full SHA for 2ff844d
src/agentlab/analyze/agent_xray.py
@@ -601,7 +601,13 @@ def get_screenshot(
601
if annotate:
602
action_str = step_info.action
603
properties = step_info.obs.get("extra_element_properties", None)
604
- action_colored = annotate_action(img, action_string=action_str, properties=properties)
+ try:
605
+ action_colored = annotate_action(
606
+ img, action_string=action_str, properties=properties
607
+ )
608
+ except Exception as e:
609
+ warning(f"Failed to annotate action: {e}")
610
+ action_colored = action_str
611
else:
612
action_colored = None
613
return img, action_colored
0 commit comments