Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wuyiqunLu committed Sep 21, 2024
1 parent f82a6ec commit 40569f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vision_agent/agent/vision_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,11 @@ def chat_with_code(
orig_chat.append({"role": "observation", "content": artifacts_loaded})
self.streaming_message({"role": "observation", "content": artifacts_loaded})

user_code_action = parse_execution(last_user_message.get("content"), False)
user_code_action = None
if isinstance(last_user_message.get("content"), str):
user_code_action = parse_execution(
last_user_message.get("content"), False
)

if user_code_action is not None:
user_result, user_obs = run_code_action(
Expand Down

0 comments on commit 40569f0

Please sign in to comment.