Ask Your Question

Potential Issue during answer edit

asked 2011-04-14 07:37:59 -0500

Benoit's avatar

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/ 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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-04-14 13:07:41 -0500

Evgeny's avatar

updated 2011-04-14 13:13:41 -0500

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2011-04-14 07:37:59 -0500

Seen: 104 times

Last updated: Apr 14 '11