Skip to content

Commit

Permalink
Merge pull request #16 from hachterberg/main
Browse files Browse the repository at this point in the history
Àdd extra exception to catch to deal with a change in XNATpy which al…
  • Loading branch information
tclose authored Nov 14, 2023
2 parents 9fe48c4 + 3896952 commit 32b26f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xnat4tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 32b26f8

Please sign in to comment.