-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add fix for downloading config files from GitHub #91
Conversation
url, | ||
headers={"User-Agent": f"Dask sphinx theme {dask_sphinx_theme.__version__}"}, | ||
) | ||
r.raise_for_status() |
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.
Note that this line isn't actually needed, but makes debugging things much easier. Right now we get a weird yaml parsing error instead of an HTTP error.
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.
Looks like the linter is unhappy but looks good to me otherwise
Okay, I'm going to merge this to unblock docs build. @jacobtomlinson I'm happy to handle any comments you may have in a follow up PR though |
Thanks for handling this @jrbourbeau |
Full context is here dask/dask#11522
It looks like GitHub started blocking us downloading Dask config files for some reason. Stackoverflow recommended setting a custom
User-Agent
, which I've confirmed fixes things (at least for now -- again not sure what changed on the GitHub side. I can open a support ticket).cc @jacobtomlinson @phofl