You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return_value = None
try:
return_value = wrapped(*args, **kwargs)
return return_value
except Exception as e:
exception = e
stack = traceback.extract_stack(limit=self._max_trace_back)
raise
finally:
# No-op if subsegment is `None` due to `LOG_ERROR`.
if subsegment is None:
return
Isn't that last return actually equivalent to return None?
The text was updated successfully, but these errors were encountered:
return_value=Nonetry:
return_value=wrapped(*args, **kwargs)
returnreturn_valueexceptExceptionase:
exception=estack=traceback.extract_stack(limit=self._max_trace_back)
raisefinally:
# No-op if subsegment is `None` due to `LOG_ERROR`.ifsubsegmentisNone:
returnreturn_value
My Python may not be super strong, but in my reading of
try: except: finally:
, it seems that thereturn_value
is being trashed in theLOG_ERROR
case.From https://github.com/aws/aws-xray-sdk-python/blob/master/aws_xray_sdk/core/recorder.py:
Isn't that last
return
actually equivalent toreturn None
?The text was updated successfully, but these errors were encountered: