From 38969521c222b6147cecdfddb21fed979c0e3b73 Mon Sep 17 00:00:00 2001 From: Hakim Achterberg Date: Mon, 6 Nov 2023 18:48:13 +0100 Subject: [PATCH] =?UTF-8?q?=C3=80dd=20extra=20exception=20to=20catch=20to?= =?UTF-8?q?=20deal=20with=20a=20change=20in=20XNATpy=20which=20allows=20th?= =?UTF-8?q?e=20initially=20requests=20to=20time=20out=20(see=20https://git?= =?UTF-8?q?lab.com/radiology/infrastructure/xnatpy/-/commit/288df3149c8e88?= =?UTF-8?q?701d3375ae075e55d9bf2bc980)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xnat4tests/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xnat4tests/base.py b/xnat4tests/base.py index e3c8eff..0d4ccc9 100644 --- a/xnat4tests/base.py +++ b/xnat4tests/base.py @@ -145,7 +145,7 @@ def start_xnat(config_name="default", keep_mounts=False, rebuild=True, relaunch= for attempts in range(1, config.connection_attempts + 1): try: login = connect(config) - except (xnat.exceptions.XNATError, requests.ConnectionError): + except (xnat.exceptions.XNATError, requests.ConnectionError, requests.ReadTimeout): if attempts == config.connection_attempts: raise else: