Skip to content

Commit

Permalink
Intersphinx: declare user agent (#8022)
Browse files Browse the repository at this point in the history
  • Loading branch information
stsewd authored Mar 16, 2021
1 parent 31abb0a commit 5013d89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion readthedocs/projects/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1397,10 +1397,11 @@ def _create_intersphinx_data(version, commit, build):
log.exception('Exception parsing readthedocs-sphinx-domain-names.json')

# These classes are copied from Sphinx
# https://git.io/fhFbI
# https://github.com/sphinx-doc/sphinx/blob/d79d041f4f90818e0b495523fdcc28db12783caf/sphinx/ext/intersphinx.py#L400-L403 # noqa
class MockConfig:
intersphinx_timeout = None
tls_verify = False
user_agent = None

class MockApp:
srcdir = ''
Expand Down

0 comments on commit 5013d89

Please sign in to comment.