Edgewall Software

Opened 19 years ago

Last modified 19 years ago

#2215 closed defect

problem adding attachment in 0.92b2 — at Initial Version

Reported by: tony@… Owned by: Jonas Borgström
Priority: high Milestone: 0.9
Component: general Version: 0.9b2
Severity: major Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

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

Change History (0)

Note: See TracTickets for help on using tickets.