add retries arg in get_web()

This commit is contained in:
simon987 2021-04-21 19:50:59 -04:00
parent 32119535ae
commit 8edad0255b
2 changed files with 2 additions and 1 deletions

View File

@ -45,6 +45,7 @@ def get_web(session=None):
logger=stdout_logger,
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(",")),
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.40",
version="1.41",
description="Misc utility methods",
author="simon987",
author_email="me@simon987.net",