Skip to content

Comments

Add API token double check, cache reset of load_config if updated.#14

Merged
emirkmo merged 5 commits intomainfrom
add_token_check
Apr 19, 2022
Merged

Add API token double check, cache reset of load_config if updated.#14
emirkmo merged 5 commits intomainfrom
add_token_check

Conversation

@emirkmo
Copy link
Member

@emirkmo emirkmo commented Apr 19, 2022

we reset the lru_cache if using any of the setters for the config file so that the same running instance of tendrils can use the updated config info.

We also added some basic checking to the get api token call to query the user for a valid token if the token is default None, or one of the known invalid ones.

@emirkmo emirkmo self-assigned this Apr 19, 2022
@emirkmo
Copy link
Member Author

emirkmo commented Apr 19, 2022

Verified and published to PyPI.

@emirkmo emirkmo merged commit dc8e4c4 into main Apr 19, 2022
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.

1 participant