Skip to content

Commit

Permalink
Update service outage message (#1653)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt474 authored May 2, 2024
1 parent dd66ee8 commit 8c81b7a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion qiskit_ibm_runtime/qiskit_runtime_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8c81b7a

Please sign in to comment.