web retry_codes fix

This commit is contained in:
simon987 2021-02-27 12:07:48 -05:00
parent 4278b0f89e
commit 43cb6c4a7b

View File

@ -18,5 +18,5 @@ def get_web():
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 os.environ.get("RETRY_CODES", "").split(","))
retry_codes=set(int(x) if x else None for x in os.environ.get("RETRY_CODES", "").split(","))
)