Update retry codes

This commit is contained in:
simon987 2021-12-09 19:46:12 -05:00
parent 4b3583358b
commit 428c82bcfd
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -2,7 +2,7 @@ from setuptools import setup
setup(
name="hexlib",
version="1.70",
version="1.71",
description="Misc utility methods",
author="simon987",
author_email="me@simon987.net",