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

Gracefully handle FANBOX Cloudflare check failures. #1345

Merged
merged 5 commits into from
Jul 1, 2024

Conversation

biggestsonicfan
Copy link
Contributor

The AttributeError: 'str' object has no attribute 'decode' was being thrown due to an unhandled condition where open_with_retry would initialize res to None yet except an urllib.error.HTTPError error. To handle this, we check the status code (403) and if a specific string (challenge_basic_security_FANBOX) is found in the returned html. If both conditions are true, we know we have failed the Fanbox Captcha verification, dump the html, then exit.

@biggestsonicfan biggestsonicfan marked this pull request as draft June 30, 2024 21:08
@biggestsonicfan biggestsonicfan marked this pull request as ready for review June 30, 2024 21:22
@Nandaka Nandaka merged commit 5c902fd into Nandaka:master Jul 1, 2024
1 check 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.

2 participants