File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -122,10 +122,11 @@ def make_url_params( # noqa: PLR0911
122
122
async def _s2_get_with_retrying (url : str , ** get_kwargs ) -> dict [str , Any ]:
123
123
return await _get_with_retrying (
124
124
url = url ,
125
- headers = get_kwargs .get ("headers" ) or semantic_scholar_headers (),
125
+ headers = get_kwargs .pop ("headers" , {} ) or semantic_scholar_headers (),
126
126
timeout = (
127
- get_kwargs .get ("timeout" )
128
- or aiohttp .ClientTimeout (SEMANTIC_SCHOLAR_API_REQUEST_TIMEOUT )
127
+ get_kwargs .pop (
128
+ "timeout" , aiohttp .ClientTimeout (SEMANTIC_SCHOLAR_API_REQUEST_TIMEOUT )
129
+ )
129
130
),
130
131
# On 7/21/2025, flaky ClientResponseError was seen with 'citations' traversals on
131
132
# paper ID 3516396ffa1fd32d4327e199d9b97ec67dc0439a with DOI 10.1126/science.2821624
You can’t perform that action at this time.
0 commit comments