Skip to content

Allow exception handling during DEBUG mode #1118

Description

@bhch

Exceptions should be handled even when DEBUG = True.

Consider the NotAllowedToDisconnect exception. This exception is very closely related to the application UX. It is an expected exception. What I mean is, as a developer, I know that if a user tries to disconnect without providing a password, this exception will be raised. So I'll have to write appropriate code to prepare for that case, like to redirect user to a certain page or ask them to set a password.

This is part of the development process. But right now, I have to turn off DEBUG mode or override SocialAuthExceptionMiddleware.raise_exception to write code for this scenario.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions