mock_xray_client: do return what f() returned

fixes #1399
this won't help with fixtures though
This commit is contained in:
Semyon Maryasin 2017-12-16 05:16:45 +03:00
parent e75f3ef4d4
commit 7a4e48e8df
No known key found for this signature in database
GPG Key ID: 22BC43FD649F86E3

View File

@ -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: