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

chore(oauth): show an informative log when OAuthError is raise #3392

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

varunsaral
Copy link
Contributor

This PR shows helpful errors logs when the oauth error is raised

@coveralls
Copy link

coveralls commented Aug 26, 2023

Coverage Status

coverage: 91.324% (+0.001%) from 91.323% when pulling 85e2e77 on varunsaral:informative_errors into 37704c3 on pennersr:main.

% get_token_prefix(self.request_token_url)
% response.text
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue: I don't think this code works:

>>> (_("test %s %s") % "a" % "b")
Traceback (most recent call last):
  File "<console>", line 1, in <module>
TypeError: not enough arguments for format string

This does:

>>> (_("test %s %s") % ("a", "b"))
'test a b'

@varunsaral
Copy link
Contributor Author

Sorry @pennersr correcting it. Will update it by tomorrow.

@varunsaral
Copy link
Contributor Author

@pennersr, i corrected it.

@varunsaral
Copy link
Contributor Author

@pennersr this can be closed after reviewing, i corrected it.

@pennersr pennersr merged commit 437cb65 into pennersr:main Aug 29, 2023
20 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.

3 participants