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

Adds rescue block in StudentGreetingChecker's talk_page_blank? #6192

Merged

Conversation

empty-codes
Copy link
Contributor

@empty-codes empty-codes commented Feb 10, 2025

What this PR does

  • Adds rescue block in talk_page_blank? method to return true if wiki_api get_page_content raises a PageFetchError with status 429
  • Stores the response.status as an instance variable in PageFetchError and make it accessible

Screenshots

Before adding rescue block:
image

After adding rescue but before adding status as an instance variable in the PageFetchError definition:
image

After:
image

…_api `get_page_content` raises a `PageFetchError` with status `429` + Stores the `response.status` as an instance variable in PageFetchError and make it accessible
@ragesoss ragesoss merged commit cb1368d into WikiEducationFoundation:master Feb 10, 2025
1 check failed
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