Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

#6829 closed defect (invalid)

UnboundLocalError: local variable 'context' referenced before assignment

Reported by: tom@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: 0.11b1
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a GET operation on /wiki, Trac issued an internal error.

(please provide additional details here)

System Information

Trac 0.11b1
Python 2.3.4 (#1, Feb 15 2005, 19:42:48)
[GCC 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)]
setuptools 0.6c5
psycopg2 2.0.5.1
Genshi 0.4.4
Pygments 0.7.1
Subversion 1.1.4 (r13838)

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/Trac-0.11b1-py2.3.egg/trac/web/main.py", line 398, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/Trac-0.11b1-py2.3.egg/trac/web/main.py", line 195, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.3/site-packages/Trac-0.11b1-py2.3.egg/trac/wiki/web_ui.py", line 158, in process_request
    return self._render_view(req, versioned_page)
  File "/usr/lib/python2.3/site-packages/Trac-0.11b1-py2.3.egg/trac/wiki/web_ui.py", line 494, in _render_view
    data['backrefs'] = self._get_backrefs(context, page)
UnboundLocalError: local variable 'context' referenced before assignment

Attachments (0)

Change History (1)

comment:1 by Christian Boos, 14 years ago

Resolution: invalid
Status: newclosed
File "/usr/lib/python2.3/site-packages/Trac-0.11b1-py2.3.egg/trac/wiki/web_ui.py", line 494, in _render_view
    data['backrefs'] = self._get_backrefs(context, page)

Sorry, that line is indicative of a patched trunk (i.e. no code from us).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.