diff --git a/qiskit_ibm_runtime/utils/embeddings.py b/qiskit_ibm_runtime/utils/embeddings.py index 2a28e3694..4b8542dc7 100644 --- a/qiskit_ibm_runtime/utils/embeddings.py +++ b/qiskit_ibm_runtime/utils/embeddings.py @@ -66,8 +66,8 @@ def from_backend(cls, backend: BackendV2) -> "Embedding": coordinates = _get_qubits_coordinates(backend.num_qubits) except ValueError as err: raise ValueError( - f"Failed to fetch coordinates for backend '{backend.name}' with error: {err}" - ) + f"Failed to fetch coordinates for backend '{backend.name}'." + ) from err return cls(coordinates, coupling_map)