Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Middleware: Only warn when settings.DEBUG is True #84

Merged
merged 2 commits into from
Jun 25, 2024

Conversation

blag
Copy link
Contributor

@blag blag commented Jun 19, 2024

As noted in #80, always raising an error when there are no active terms of service is a little overactive.

This PR adjusts when NoActiveTermsOfService is thrown, and when settings.DEBUG is True, only raises a warning instead. This should help when building containers for development.

Tests included for both settings.DEBUG states.

@blag blag mentioned this pull request Jun 19, 2024
@blag blag changed the title Middleware only warn when settings.DEBUG is True Middleware: Only warn when settings.DEBUG is True Jun 24, 2024
@nicholasserra
Copy link
Collaborator

Looks like a good solution to me, thank you!

@nicholasserra nicholasserra merged commit d9e10ad into revsys:master Jun 25, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants