Merge pull request #1400 from MarSoft/fix-xray-client-decorator-ret-val

mock_xray_client: don't swallow function's return value
This commit is contained in:
Jack Danger 2017-12-26 13:28:33 -08:00 committed by GitHub
commit 2aea4fc0d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: