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

Redo request after token is updated #510

Open
ewtoombs opened this issue Jan 19, 2023 · 0 comments
Open

Redo request after token is updated #510

ewtoombs opened this issue Jan 19, 2023 · 0 comments

Comments

@ewtoombs
Copy link

ewtoombs commented Jan 19, 2023

raise TokenUpdated(token)

Seriously, why can't we just redo the request? That's what everybody's going to be doing anyway. Every project using this code is just going to write

result = None
while True:
    try:
        result = session.request(...)
    except TokenUpdated:
        pass
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

No branches or pull requests

1 participant