Skip to content

Commit

Permalink
always remember to disable
Browse files Browse the repository at this point in the history
  • Loading branch information
albi3ro committed May 14, 2024
1 parent 39da90c commit faa5cf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pennylane/ops/functions/assert_valid.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ def _check_capture(op):
" Please see the capture module documentation for more infromation."
)
) from e
qml.capture.disable()
finally:
qml.capture.disable()


def _check_pickle(op):
Expand Down

0 comments on commit faa5cf9

Please sign in to comment.