Update rdagent/scenarios/qlib/task_generator/feedback.py

This commit is contained in:
you-n-g
2024-07-15 11:58:36 +08:00
committed by GitHub
parent eb1a17e13d
commit a2de38462b
@@ -78,6 +78,7 @@ class QlibModelHypothesisExperiment2Feedback(HypothesisExperiment2Feedback):
return hypothesis_feedback
except json.JSONDecodeError as e:
# TODO: (Xiao) I think raising a specific type of ERROR to make caller know sth bad has happend would be more reasonable
print("Error parsing JSON response from LLM for hypothesis feedback:", e)
except Exception as e:
print("An unexpected error occurred while generating hypothesis feedback:", e)