Agentic AI Module 3 - Exercise 2: Reflection + Rewrite. All tests passed, but grading failed

I worked on the Agentic AI Module 3 - Exercise 2 & 3. All the tests passed with green lights. However, after submitting the work, I got low grade for Exercise 2 & 3.

The message for Exercise 2 is:

Failed test case: reflection should mention Strengths, Limitations, Suggestions, Opportunities.
Expected:
[‘strengths’, ‘limitations’, ‘suggestions’, ‘opportunities’],
but got:
[].

The message for Exercise 3 is:

Failed test case: convert_report_to_html raised AttributeError: ‘NoneType’ object has no attribute ‘choices’.
Expected:
no exception,
but got:
‘NoneType’ object has no attribute ‘choices’.

The unit tests passed. I also reviewed the exercises for several times, and found no problems.

Can anybody help with this? Thank you in advance.

The “None Type” error would happen if you did not save your notebook file before you submitted for grading.

Thank you. After saving the notebook, the problem is resolved.