From b1c45cd249ec6e6a6f68d439291070d09393bd53 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Tue, 23 Jan 2024 15:07:23 +0000 Subject: [PATCH] return values from generator decorator --- vcr/cassette.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcr/cassette.py b/vcr/cassette.py index fad0d25..5a189e3 100644 --- a/vcr/cassette.py +++ b/vcr/cassette.py @@ -125,7 +125,7 @@ class CassetteContextDecorator: 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: