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 )
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 , 6 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 6 years ago
Has patch: | set |
---|
comment:3 by , 6 years ago
Description: | modified (diff) |
---|---|
Patch needs improvement: | set |
Summary: | Improve `contrib.humanize.templatetags.humanize.naturalday` and add more test for it → Remove untested ValueError catching in naturalday template filter |
Triage Stage: | Unreviewed → Accepted |
Note:
See TracTickets
for help on using tickets.