Skip to content

Commit a8ba694

Browse files
committed
Fix mypy
1 parent 5023666 commit a8ba694

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

python/semantic_kernel/functions/kernel_function.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,9 @@ async def invoke(
279279

280280
if function_tracer.are_sensitive_events_enabled():
281281
try:
282-
result = str(function_context.result.value)
282+
result = str(function_context.result.value) if function_context.result else None
283283
except Exception as e:
284-
result = e
284+
result = str(e)
285285
current_span.set_attribute(TOOL_CALL_RESULT, result)
286286

287287
return function_context.result

0 commit comments

Comments
 (0)