FireBird-Tech commited on
Commit
f041069
·
verified ·
1 Parent(s): 0ca1f81

Update scripts/format_response.py

Browse files
Files changed (1) hide show
  1. scripts/format_response.py +1 -1
scripts/format_response.py CHANGED
@@ -500,7 +500,7 @@ def format_plan_instructions(plan_instructions):
500
  try:
501
  instructions = json.loads(cleaned_str)
502
  except json.JSONDecodeError:
503
- raise ValueError(f"Invalid JSON format in plan instructions: {str(e)}")
504
  elif isinstance(plan_instructions, dict):
505
  instructions = plan_instructions
506
  else:
 
500
  try:
501
  instructions = json.loads(cleaned_str)
502
  except json.JSONDecodeError:
503
+ raise ValueError(f"Invalid JSON format in plan instructions: {str(e)} +\n {str(plan_instructions)}")
504
  elif isinstance(plan_instructions, dict):
505
  instructions = plan_instructions
506
  else: