Skip to content

Commit 91db71e

Browse files
committed
Again
1 parent 0154b75 commit 91db71e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/library/characterization/test_cross_resonance_hamiltonian.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# TODO: remove old path after we stop supporting the relevant version of Qiskit
2626
try:
2727
from qiskit.circuit.library.hamiltonian_gate import HamiltonianGate
28-
except ImportError:
28+
except ModuleNotFoundError:
2929
from qiskit.extensions.hamiltonian_gate import HamiltonianGate
3030

3131
from qiskit_aer import AerSimulator

0 commit comments

Comments
 (0)