From 93a54d7b9d06b8c19fcd88d399a3d046c6820fc0 Mon Sep 17 00:00:00 2001 From: dandds Date: Mon, 14 Jan 2019 15:52:41 -0500 Subject: [PATCH] catch all request exceptions when downloading CRLs --- atst/domain/authnid/crl/util.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/atst/domain/authnid/crl/util.py b/atst/domain/authnid/crl/util.py index 3934ed50..f5a702fd 100644 --- a/atst/domain/authnid/crl/util.py +++ b/atst/domain/authnid/crl/util.py @@ -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(