lister: instantiate a requests session all the time
This commit is contained in:
parent
e2a96f1383
commit
033ef98683
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ def gh_api_request(path, username=None, password=None, session=None,
|
|||
params['auth'] = (username, password)
|
||||
|
||||
if session is None:
|
||||
session = requests
|
||||
session = requests.Session()
|
||||
|
||||
retries_left = MAX_RETRIES
|
||||
while retries_left > 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue