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:
commit
2aea4fc0d4
@ -51,7 +51,7 @@ def mock_xray_client(f):
|
|||||||
aws_xray_sdk.core.xray_recorder._emitter = MockEmitter()
|
aws_xray_sdk.core.xray_recorder._emitter = MockEmitter()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
f(*args, **kwargs)
|
return f(*args, **kwargs)
|
||||||
finally:
|
finally:
|
||||||
|
|
||||||
if old_xray_context_var is None:
|
if old_xray_context_var is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user