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
AuthError not raised on 403 errors #196
Comments
The |
Isn't the idea of this line to protect against output being None? If so should we make it |
@pypingou Yeah probably, though hasattr on None will also be False. Either way should work. |
Just a heads-up, the |
fixes fedora-infra#196 Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
fixes fedora-infra#196 Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
fixes #196 Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
I noticed today that the
fedora.client.openidbaseclient.requires_login
decorator does not handle 403 return codes though it looks like it's intended to. The issue is that the output variable (arequests.models.Response
) does two weird things:Response
with abool
does not return a bool:We probably want to do this instead:
The text was updated successfully, but these errors were encountered: