Skip to content

Commit

Permalink
fix: changed excpetion error type in _get_gate
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoLiegiBastonLiegi committed Feb 26, 2024
1 parent c25ad35 commit 20b74f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qibo/_openqasm.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def _get_gate(self, gate):
qubits, init_args
)
# the gate exists in self.defined_gates but invalid construction
except TypeError:
except ValueError:
raise_error(
ValueError, f"Invalid gate declaration at span: {gate.span}"
)
Expand Down

0 comments on commit 20b74f2

Please sign in to comment.