Opened 10 years ago
Closed 10 years ago
#12340 closed defect (fixed)
UnboundLocalError: local variable 'template' referenced before assignment
| Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.0.10 |
| Component: | report system | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: |
|
||
| API Changes: | |||
| Internal Changes: | |||
Description
Found in the logs:
2016-01-29 04:29:19,755 Trac[main] ERROR: Internal Server Error: <RequestWithSession "POST '/report/1'">, referrer NoneTraceback (most recent call last):
File "/srv/trac-hacks.org/pve/lib/python2.7/site-packages/trac/web/main.py", line 554, in _dispatch_request
dispatcher.dispatch(req)
File "/srv/trac-hacks.org/pve/lib/python2.7/site-packages/trac/web/main.py", line 247, in dispatch
resp = chosen_handler.process_request(req)
File "/srv/trac-hacks.org/pve/lib/python2.7/site-packages/trac/ticket/report.py", line 209, in process_request
return template, data, None
UnboundLocalError: local variable 'template' referenced before assignment
Attachments (0)
Change History (5)
comment:1 by , 10 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
follow-up: 3 comment:2 by , 10 years ago
follow-up: 4 comment:3 by , 10 years ago
Replying to Ryan J Ollos:
Proposed changes in log:rjollos.git:t12340_template_referenced_before_assignment.
We already have "Invalid request arguments." message. It might be good to use "Invalid request arguments." rather than "Invalid %(method)s request." as a new message.
comment:4 by , 10 years ago
Replying to Jun Omae:
We already have
"Invalid request arguments."message. It might be good to use"Invalid request arguments."rather than"Invalid %(method)s request."as a new message.
Thanks for reviewing. I'll make that change before committing.
comment:5 by , 10 years ago
| Release Notes: | modified (diff) |
|---|---|
| Resolution: | → fixed |
| Status: | assigned → closed |



Proposed changes in log:rjollos.git:t12340_template_referenced_before_assignment.
There are 3 other
IRequestHandlerimplementations that I'll fix in the same way: