mirror of
https://github.com/simon987/hexlib.git
synced 2025-04-04 02:12:59 +00:00
Update retry codes
This commit is contained in:
parent
4b3583358b
commit
428c82bcfd
@ -45,7 +45,7 @@ def get_web(session=None):
|
||||
rps=os.environ.get("RPS", 1),
|
||||
logger=stdout_logger,
|
||||
cookie_file=os.environ.get("COOKIE_FILE", None),
|
||||
retry_codes=set(int(x) for x in retry_codes) if retry_codes else None,
|
||||
retry_codes=set(int(x) for x in retry_codes.split(",")) if retry_codes else None,
|
||||
retries=int(os.environ.get("RETRIES", 3)),
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user