-
Notifications
You must be signed in to change notification settings - Fork 15.9k
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
when encountering error during fetch return "" in web_base.py #8753
Conversation
when e.g. downloading a sitemap with a malformed url (e.g. "ttp://example.com/index.html" with the h omitted at the beginning of the url), this will ensure that the sitemap download does not crash, but just emits a warning.
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
yea i think would be nice to make this optional with a |
when encountering a failure loading a url from a list of urls, will suggest setting the continue_on_failure flag
Went for the When encountering an error now, added a suggestion to the logger to set the flag to True. Added it Sitemap, Gitbook and Blackboard loaders as they all derive from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice thanks!
added black formatting of changed files |
when e.g. downloading a sitemap with a malformed url (e.g. "ttp://example.com/index.html" with the h omitted at the beginning of the url), this will ensure that the sitemap download does not crash, but just emits a warning. (maybe should be optional with e.g. a
skip_faulty_urls:bool=True
parameter, but this was the most straightforward fix)@rlancemartin, @eyurtsev