exception documentation

class BadStateException(Exception): (source)

View In Hierarchy

Thrown if all the parameters are correct, but there's no CSRF token in the session. This probably means that the session expired. The recommended action is to redirect the user's browser to try the approval process again.