fixed bare except

pull/339/head
evelynmitchell 1 year ago
parent 311d47ef4d
commit ba09b9d472

@ -108,7 +108,8 @@ class Action:
def to_json(self):
try:
tool_output = json.loads(self.tool_output)
except:
except JSONDecodeError:
# print("Failed to decode JSON. Using raw output instead.")
tool_output = self.tool_output
return {
"thought": self.thought,

Loading…
Cancel
Save