Tachi67 commited on
Commit
80cf6d3
·
1 Parent(s): 9bd62d1

Update Controller_CoderFlow.py

Browse files
Files changed (1) hide show
  1. Controller_CoderFlow.py +1 -1
Controller_CoderFlow.py CHANGED
@@ -116,7 +116,7 @@ class Controller_CoderFlow(ChatAtomicFlow):
116
  try:
117
  response = json.loads(api_output)
118
  return response
119
- except json.decoder.JSONDecodeError:
120
  new_goal = f"Here is your previous response {api_output}, it cannot be parsed with json.loads, please fix this issue."
121
  new_input_data = input_data.copy()
122
  new_input_data['goal'] = new_goal
 
116
  try:
117
  response = json.loads(api_output)
118
  return response
119
+ except (json.decoder.JSONDecodeError, json.JSONDecodeError):
120
  new_goal = f"Here is your previous response {api_output}, it cannot be parsed with json.loads, please fix this issue."
121
  new_input_data = input_data.copy()
122
  new_input_data['goal'] = new_goal