catch all request exceptions when downloading CRLs
This commit is contained in:
parent
5656523ad6
commit
93a54d7b9d
@ -86,10 +86,7 @@ def refresh_crls(out_dir, target_dir, logger):
|
|||||||
logger.info("successfully synced CRL from {}".format(crl_location))
|
logger.info("successfully synced CRL from {}".format(crl_location))
|
||||||
else:
|
else:
|
||||||
logger.info("no updates for CRL from {}".format(crl_location))
|
logger.info("no updates for CRL from {}".format(crl_location))
|
||||||
except (
|
except requests.exceptions.RequestException:
|
||||||
requests.exceptions.ChunkedEncodingError,
|
|
||||||
requests.exceptions.ConnectionError,
|
|
||||||
):
|
|
||||||
if logger:
|
if logger:
|
||||||
logger.error(
|
logger.error(
|
||||||
"Error downloading {}, removing file and continuing anyway".format(
|
"Error downloading {}, removing file and continuing anyway".format(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user