Skip to content

Commit 2a72e96

Browse files
committed
Lint
1 parent 934298e commit 2a72e96

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/pr.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ on:
1616
pull_request:
1717
branches:
1818
- main
19+
- v0.6
1920

2021
concurrency:
2122
# Cancel any previously-started but still active runs on the same branch.

qualtran/_infra/bloq.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,11 +486,11 @@ def as_pl_op(self, wires: 'Wires') -> 'Operation':
486486
"""
487487
try:
488488
from pennylane.io import FromBloq
489-
except ImportError:
489+
except ImportError as e:
490490
raise NotImplementedError(
491491
f"{self} does not have a native PennyLane operation. "
492492
f"pennylane>=0.41 will wrap this bloq in the `pennylane.io.FromBloq` adapter."
493-
)
493+
) from e
494494

495495
return FromBloq(bloq=self, wires=wires)
496496

0 commit comments

Comments
 (0)