First time here? Check out the FAQ!

Revision history  [back]

Potential Issue during answer edit

One of my user got an exception:

UnboundLocalError at /answers/451/edit/
  local variable 'revision_form' referenced before assignment

The error is during the POST in askbot/views/writers.py in edit_answer, line 435 (setting the 'revision_form' of the data dictionary).

Looking at the code, it appears that the test "if form.is_valid():" (line 419) returned false.

I don't know what the user did to not get a valid form, but should probably catch that case.