We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6709960 commit a07cc8fCopy full SHA for a07cc8f
src/save_and_restore_api/tools/cli.py
@@ -481,7 +481,7 @@ def check_connection(SR):
481
logger.debug("Connecting to the Save-and-Restore service ...")
482
try:
483
info = SR.info_get()
484
- except SR.HTTPClientError as ex:
+ except (SR.HTTPClientError, SR.HTTPRequestError) as ex:
485
logger.debug("Failed to connect to Save-and-Restore service.")
486
raise RuntimeError(f"Failed to connect to the Save-and-Restore service: {ex}") from ex
487
logger.debug(f"Save-and-Restore info:\n{pprint.pformat(info)}")
0 commit comments