catch all request exceptions when downloading CRLs

This commit is contained in:
dandds 2019-01-14 15:52:41 -05:00
parent 5656523ad6
commit 93a54d7b9d

View File

@ -86,10 +86,7 @@ def refresh_crls(out_dir, target_dir, logger):
logger.info("successfully synced CRL from {}".format(crl_location))
else:
logger.info("no updates for CRL from {}".format(crl_location))
except (
requests.exceptions.ChunkedEncodingError,
requests.exceptions.ConnectionError,
):
except requests.exceptions.RequestException:
if logger:
logger.error(
"Error downloading {}, removing file and continuing anyway".format(