Skip to content

Commit 329cbf6

Browse files
committed
Add user-agent to DummyConfig
Fixes this error while trying to fetch lists: ``` AttributeError: ('intersphinx inventory %r not fetchable due to %s: %s', 'http://docs.python.org/3.8/objects.inv', <class 'AttributeError'>, "'DummyConfig' object has no attribute 'user_agent'") ```
1 parent eec6d91 commit 329cbf6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib_list/fetch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ def __init__(self, intersphinx_mapping=None, intersphinx_cache_limit=5, intersph
1111
self.intersphinx_mapping = intersphinx_mapping or {}
1212
self.intersphinx_cache_limit = intersphinx_cache_limit
1313
self.intersphinx_timeout = intersphinx_timeout
14+
self.user_agent = "python-stdlib-list"
1415
self.tls_verify = True
1516

1617

0 commit comments

Comments
 (0)