-
Notifications
You must be signed in to change notification settings - Fork 1
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
Attribute check in CurrentUserMiddleware._del_user? #4
Comments
ah, i was about to raise this again.
|
damn and still here lol |
Rather than simply checking for the attribute before clearing these really should have test coverage (of the above 2 situations, and the case where there's an exception) so that we know that it's actually doing what it's supposed to be. @davecoates is it possible to allocate some time for someone to look at this? |
yep will do |
Related: if changes are made here then we probably should also change it to support async: https://peps.python.org/pep-0567/ (TLDR: use |
Is there any reason to not check for the presence of
user
attribute onGLOBAL_USER
before deleting?The text was updated successfully, but these errors were encountered: