From 8c81b7a25753827d0fcb357bacd0b0f0045a6d86 Mon Sep 17 00:00:00 2001 From: Kevin Tian Date: Thu, 2 May 2024 14:13:49 -0400 Subject: [PATCH] Update service outage message (#1653) --- qiskit_ibm_runtime/qiskit_runtime_service.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qiskit_ibm_runtime/qiskit_runtime_service.py b/qiskit_ibm_runtime/qiskit_runtime_service.py index d1f76c04b..f9e30f6d5 100644 --- a/qiskit_ibm_runtime/qiskit_runtime_service.py +++ b/qiskit_ibm_runtime/qiskit_runtime_service.py @@ -159,7 +159,11 @@ def __init__( try: self._hgps = self._initialize_hgps(auth_client) except json.decoder.JSONDecodeError: - raise IBMApiError("Unexpected response received from server") + raise IBMApiError( + "Unexpected response received from server. " + "Please check if the service is in maintenance mode " + "https://docs.quantum.ibm.com/announcements/service-alerts." + ) for hgp in self._hgps.values(): for backend_name in hgp.backends: