give max_retries to FuturesSession in case it may build HTTPAdaptors
This commit is contained in:
parent
a9b86d60a5
commit
195b61fb57
2 changed files with 4 additions and 3 deletions
|
|
@ -196,7 +196,7 @@ class Browser(object):
|
|||
"""
|
||||
Set up a python-requests session for our usage.
|
||||
"""
|
||||
session = FuturesSession(max_workers=self.MAX_WORKERS)
|
||||
session = FuturesSession(max_workers=self.MAX_WORKERS, max_retries=self.MAX_RETRIES)
|
||||
|
||||
session.proxies = self.PROXIES
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue