Opened 6 years ago

Last modified 6 years ago

#29931 closed Cleanup/optimization

Remove untested ValueError catching in naturalday template filter — at Version 3

Reported by: Hasan Ramezani Owned by: Hasan Ramezani
Component: contrib.humanize Version: 2.1
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description (last modified by Tim Graham)

This branch is untested:

except ValueError:
        # Date arguments out of range

I don't see how that branch could happen if value is a date.

Change History (3)

comment:1 by Hasan Ramezani, 6 years ago

Owner: changed from nobody to Hasan Ramezani
Status: newassigned

comment:2 by Hasan Ramezani, 6 years ago

Has patch: set

comment:3 by Tim Graham, 6 years ago

Description: modified (diff)
Patch needs improvement: set
Summary: Improve `contrib.humanize.templatetags.humanize.naturalday` and add more test for itRemove untested ValueError catching in naturalday template filter
Triage Stage: UnreviewedAccepted
Note: See TracTickets for help on using tickets.
Back to Top