Skip to content

Commit

Permalink
fix: return json_entity if validation fails
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklatimer committed Jun 25, 2024
1 parent 0a20676 commit 093f752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aind_slims_api/mouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ def fetch_mouse_content(
mouse = SlimsMouseContent.model_validate(mouse_details)
except ValidationError as e:
logger.error(f"SLIMS data validation failed, {repr(e)}")
return mouse_details
return mouse_details.json_entity

return mouse

0 comments on commit 093f752

Please sign in to comment.