First time here? Check out the FAQ!
1

Potential Issue during answer edit

  • retag add tags

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.

Benoit's avatar
875
Benoit
asked 2011-04-14 07:37:59 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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

Evgeny's avatar
13.2k
Evgeny
updated 2011-04-14 13:13:41 -0500, answered 2011-04-14 13:07:41 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments