Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Etienne Jodry authored and Etienne Jodry committed Sep 16, 2024
1 parent af0cedb commit 3aaa75f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/biodm/components/controllers/resourcecontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ async def _extract_body(self, request: Request) -> bytes:
"""
body = await request.body()
if body in (b'{}', b'[]', b'[{}]'):
raise PayloadEmptyError
raise PayloadEmptyError("No input data.")
return body

def _extract_fields(
Expand Down

0 comments on commit 3aaa75f

Please sign in to comment.