Add 520 in default retry codes

This commit is contained in:
simon987 2021-10-03 10:33:49 -04:00
parent c295b5d30b
commit 333083e8b9
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ class Web:
self._logger = logger
self._current_req = None
if retry_codes is None or not retry_codes:
retry_codes = {502, 504, 522, 524, 429}
retry_codes = {502, 504, 520, 522, 524, 429}
self._retry_codes = retry_codes
if session is None:

View File

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