mirror of
https://github.com/simon987/hexlib.git
synced 2025-04-18 17:36:41 +00:00
Add retry_sleep to retry
This commit is contained in:
parent
6e1aa53455
commit
53a262a138
@ -45,5 +45,6 @@ def get_web(session=None):
|
|||||||
logger=stdout_logger,
|
logger=stdout_logger,
|
||||||
cookie_file=os.environ.get("COOKIE_FILE", None),
|
cookie_file=os.environ.get("COOKIE_FILE", None),
|
||||||
retry_codes=set(int(x) if x else None for x in os.environ.get("RETRY_CODES", "").split(",")),
|
retry_codes=set(int(x) if x else None for x in os.environ.get("RETRY_CODES", "").split(",")),
|
||||||
|
retry_sleep=int(os.environ.get("RETRY_SLEEP", 0)),
|
||||||
ua=ua[os.environ.get("USER_AGENT")] if os.environ.get("USER_AGENT", None) is not None else None
|
ua=ua[os.environ.get("USER_AGENT")] if os.environ.get("USER_AGENT", None) is not None else None
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user