Fail gracefully when getting a page during a bork #111
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
During a wikibork, Wikidot will show an error page. I believe this is what is causing an error when trying to get a page ID, because I do not verify the content of the page before getting the ID, and receiving an error page means the request technically succeeded.
I need to work out how to reliably detect an error page before I can complete this.
Detect 200 error pageActually it is a 500Naive solution if I can't: page ID not in page AND some known error text present.
Countercase: theme:wikifot must not match.