Opened 6 years ago
Closed 6 years ago
#29931 closed Cleanup/optimization (fixed)
Remove untested ValueError catching in naturalday template filter
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 (4)
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 |
comment:4 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
In f62cf22: