From 7a4e48e8df2957fdadb7c6f91184e24a39407ed4 Mon Sep 17 00:00:00 2001 From: Semyon Maryasin Date: Sat, 16 Dec 2017 05:16:45 +0300 Subject: [PATCH] mock_xray_client: do return what f() returned fixes #1399 this won't help with fixtures though --- moto/xray/mock_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/xray/mock_client.py b/moto/xray/mock_client.py index 6e2164d63..135796054 100644 --- a/moto/xray/mock_client.py +++ b/moto/xray/mock_client.py @@ -51,7 +51,7 @@ def mock_xray_client(f): aws_xray_sdk.core.xray_recorder._emitter = MockEmitter() try: - f(*args, **kwargs) + return f(*args, **kwargs) finally: if old_xray_context_var is None: