id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,branch,changelog,apichanges,internalchanges 2215,problem adding attachment in 0.92b2,tony@…,Jonas Borgström,"{{{ 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 }}}",defect,closed,high,0.9,general,0.9b2,major,fixed,,,,,,