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

JWT token expiry/refresh will still prematurely end downloads #28

Open
teekay30 opened this issue May 10, 2020 · 1 comment
Open

JWT token expiry/refresh will still prematurely end downloads #28

teekay30 opened this issue May 10, 2020 · 1 comment

Comments

@teekay30
Copy link

teekay30 commented May 10, 2020

get_url_book(user, book_id, format) # call recursive

Whenever the token refresh is hit and the function returns, it will continue on to the error which is probably why issues #19 and #9 were also created.

Adding a 'return' at the beginning of this line will make it so that it returns the value of the recursively called function and exit the initially called function.
This will stop it from flowing onto the error message and returning the blank string, indicating a failure to retrieve the book URL.

@artifexor
Copy link

same for line 88

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

2 participants