Skip to content

Commit e6f0559

Browse files
Get key from configuration if not exists on backend class
1 parent d13fdc2 commit e6f0559

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

qiskit_ibm_runtime/ibm_backend.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ def __getattr__(self, name: str) -> Any:
114114
)
115115
try:
116116
return super().__getattribute__(name)
117-
except KeyError:
117+
except AttributeError:
118+
pass
119+
try:
120+
return self._configuration.__getattribute__(name)
121+
except AttributeError:
118122
raise AttributeError(
119123
"'{}' object has no attribute '{}'".format(
120124
self.__class__.__name__, name

0 commit comments

Comments
 (0)