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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue