Opened 15 years ago
Closed 15 years ago
#6173 closed defect (fixed)
AttributeError: 'module' object has no attribute 'format_exc'
Reported by: | anonymous | Owned by: | Robert Corsaro |
---|---|---|---|
Priority: | normal | Component: | DateFieldPlugin |
Severity: | normal | Keywords: | AttributeError |
Cc: | Trac Release: | 0.11 |
Description
Nice plugin, but as of today some users are reporting an issue when resolving a ticket (Trac 0.11). I found this ticket which is identical...
http://trac.edgewall.org/ticket/8031
...and it says that it's a problem with the plugin, so I'm raising it here.
Attachments (0)
Change History (11)
comment:1 Changed 15 years ago by
Owner: | changed from Robert Corsaro to anonymous |
---|---|
Status: | new → assigned |
comment:2 Changed 15 years ago by
Owner: | changed from anonymous to Robert Corsaro |
---|---|
Status: | assigned → new |
comment:3 Changed 15 years ago by
Status: | new → assigned |
---|
comment:4 Changed 15 years ago by
Cc: | anonymous added; Stuart removed |
---|
Hi. I raised this issue - and have now registered.
I'm afraid I don't know how to test the patch. If you can provide some more information on how to apply the patch please let me know.
Thanks.
comment:5 Changed 15 years ago by
- Open datefield/filter.py
- go to the line that says import traceback
- change it to "from traceback import traceback"
- see if it works
comment:6 Changed 15 years ago by
Trying again:
- Open datefield/filter.py
- go to the line that says import traceback
- change it to "from traceback import traceback"
- see if it works
comment:7 Changed 15 years ago by
OK, it looks like my issue can be explained without requiring a patch. The dates were simply in the wrong format.
When I first configured my new custom "Due Date" field it was set to dd/mm/yyyy and the team set about updating their tickets accordingly. Then it transpired that we couldn't sort correctly on this field in the reports, so I reconfigured the dates to be in yyyy/mm/dd format. From that point, anyone updating a ticket got this error. Once all existing dates were changed to yyyy/mm/dd we've had no problems.
Seems obvious now; sorry to waste your time and thanks for the responses.
Resolve as "invalid" or "fixed"?
comment:8 Changed 15 years ago by
No. It really was a bug. You should have gotten a nicer error message. If you can't test I will.
comment:10 Changed 15 years ago by
I made the change but it behaves in the same way as before, throwing up this error:
Trac detected an internal error: AttributeError: 'module' object has no attribute 'format_exc'
comment:11 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Can anyone test this patch: It seems like to reproduce you need to fail validation on the date.