Skip to content

fixed format_field_value issue#219

Merged
Mudiwa66 merged 2 commits into
developfrom
fix-datetime
Dec 1, 2025
Merged

fixed format_field_value issue#219
Mudiwa66 merged 2 commits into
developfrom
fix-datetime

Conversation

@Mudiwa66

Copy link
Copy Markdown
Contributor

Fixing this glitchtip issue: https://glitchtip.prd.momconnect.co.za/momconnect/issues/80.

A TypeError is raised in production because the Python function datetime.fromisoformat() is receiving None instead of a string.

@erikh360 erikh360 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, do we have tests for these?

@Mudiwa66

Mudiwa66 commented Dec 1, 2025

Copy link
Copy Markdown
Contributor Author

@erikh360 yes the class itself has tests, I just added a part that makes sure we prevent incorrectly parsing non strings as dates and now return them unchanged.

@Mudiwa66
Mudiwa66 merged commit d984523 into develop Dec 1, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants