#1 — All errors are ValueErrors!

by Daniel Greenfeld last modified Jul 01, 2009 07:20 PM
State Unconfirmed
Version: 0.5
Area Functionality
Issue type Bug
Severity Medium
Submitted by Daniel Greenfeld
Submitted on Jul 01, 2009
Responsible
Target release:
This makes debugging the fact that there are no humanator questions pretty painful. Other issues also hard to determine.
Steps to reproduce:
1. Create a form that uses humanator
2. Don't create/publish any question content types
3. Try out the form. You get a ValueError - which is very uninformative.
Added by Daniel Greenfeld on Jul 01, 2009 07:20 PM
Need to create at least three (3) new errors to be served:

class NoHumanatorQuestionsError(Exception):
    """ Raised when no humanator questions have been created/published """

class HumanatorQuestionsDoesNotExist(Exception):
    """ Raised when no humanator question by that id is requested """

class BogusQuestionCheckError(Exception):
    """ Raised when XSS attempts are made."""

No responses can be added.