Skip to content

Gracefully skip errors having to do with bad/dead links in iframes#217

Open
dwincort wants to merge 1 commit intothisisparker:mainfrom
dwincort:main
Open

Gracefully skip errors having to do with bad/dead links in iframes#217
dwincort wants to merge 1 commit intothisisparker:mainfrom
dwincort:main

Conversation

@dwincort
Copy link
Copy Markdown
Contributor

In the parse_for_embedded_puzzle function, we get a set of srcs from iframes. In the event that one of these srcs is a bad/dead link (specifically, one that comes before the embedded puzzle we're looking for), then xword-dl will throw an error instead of finding the correct iframe src.

This PR resolves this problem by putting the requests.get(src) in a try-catch block.

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