django-rest-framework-json-api icon indicating copy to clipboard operation
django-rest-framework-json-api copied to clipboard

Fix the format_errors bug when response data is None

Open ericinfins opened this issue 8 months ago • 2 comments

Fixes #

Related to the PR: https://github.com/django-json-api/django-rest-framework-json-api/pull/1121 Add the test case to support it

Description of the Change

Fix: TypeError: object of type 'NoneType' has no len()

Checklist

  • [x] PR only contains one change (considered splitting up PR)
  • [x] unit-test added
  • [ ] documentation updated
  • [ ] CHANGELOG.md updated (only for user relevant changes)
  • [ ] author name in AUTHORS

ericinfins avatar May 31 '24 01:05 ericinfins