Skip to content

Redo request after token is updated #510

@ewtoombs

Description

@ewtoombs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions