Skip to content

Commit

Permalink
return values from generator decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert authored Jan 23, 2024
1 parent 3a5ff1c commit b1c45cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vcr/cassette.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def _handle_generator(self, fn):
duration of the generator.
"""
with self as cassette:
yield from fn(cassette)
return (yield from fn(cassette))

def _handle_function(self, fn):
with self as cassette:
Expand Down

0 comments on commit b1c45cd

Please sign in to comment.