First time here? Check out the FAQ!
1

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Benoit's avatar
875
Benoit
asked 14 years ago

Comments

see more comments

1 Answer

0

Thanks, I think I have fixed this - available on github. There was a similar issue on question edit.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
updated 14 years ago, answered 14 years ago
link

Comments

see more comments