Skip to content

Commit a1e61f1

Browse files
committed
Linter fix.
1 parent 504eb5c commit a1e61f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

azure/durable_functions/openai_agents/context.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ def create_activity_tool(
7171
if activity_func._function is None:
7272
raise ValueError("The provided function is not a valid Azure Function.")
7373

74-
if activity_func._function._trigger is not None and activity_func._function._trigger.activity is not None:
74+
if (activity_func._function._trigger is not None
75+
and activity_func._function._trigger.activity is not None):
7576
activity_name = activity_func._function._trigger.activity
7677
else:
7778
activity_name = activity_func._function._name

0 commit comments

Comments
 (0)