Skip to content

Commit 4fa80df

Browse files
committed
fix None string for webhook url and totp url
1 parent 4b7a4ed commit 4fa80df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

skyvern/forge/agent.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ async def create_task(self, task_request: TaskRequest, organization_id: str | No
187187
task = await app.DATABASE.create_task(
188188
url=str(task_request.url),
189189
title=task_request.title,
190-
webhook_callback_url=str(task_request.webhook_callback_url),
191-
totp_verification_url=str(task_request.totp_verification_url),
190+
webhook_callback_url=str(task_request.webhook_callback_url) if task_request.webhook_callback_url else None,
191+
totp_verification_url=str(task_request.totp_verification_url) if task_request.totp_verification_url else None,
192192
totp_identifier=task_request.totp_identifier,
193193
navigation_goal=task_request.navigation_goal,
194194
data_extraction_goal=task_request.data_extraction_goal,

0 commit comments

Comments
 (0)