[Trac-tickets] [The Trac Project] #2215: problem adding attachment
in 0.92b2
The Trac Project
noreply at edgewall.com
Wed Oct 12 23:16:18 CDT 2005
#2215: problem adding attachment in 0.92b2
------------------------------+---------------------------------------------
Reporter: tony at icmtech.com | Owner: jonas
Type: defect | Status: new
Priority: high | Milestone:
Component: general | Version: 0.9b2
Severity: major | Keywords: |
------------------------------+---------------------------------------------
Oops...
Trac detected an internal error:
local variable 'targetfile' referenced before assignment
If you think this really should work and you can reproduce it. Then you
should consider to report this problem to the Trac team.
Go to http://trac.edgewall.com/ and create a new ticket where you describe
the problem, how to reproduce it. Don't forget to include the python
traceback found below.
TracGuide — The Trac User and Administration Guide
Python traceback
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/trac/web/modpython_frontend.py",
line 206, in handler
dispatch_request(mpr.path_info, mpr, env)
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 139, in
dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 107, in
dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.3/site-packages/trac/attachment.py", line 265, in
process_request
self._do_save(req, attachment)
File "/usr/lib/python2.3/site-packages/trac/attachment.py", line 333, in
_do_save
attachment.insert(filename, upload.file, size)
File "/usr/lib/python2.3/site-packages/trac/attachment.py", line 163, in
insert
targetfile.close()
UnboundLocalError: local variable 'targetfile' referenced before
assignment
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2215>
The Trac Project <http://trac.edgewall.com/>
More information about the Trac-Tickets
mailing list