From c65795711aba8b8deec3640b8a2bd9968c2769cc Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Fri, 18 Oct 2024 10:56:00 -0700 Subject: [PATCH] fix None string for webhook url and totp url (#1002) --- skyvern/forge/agent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skyvern/forge/agent.py b/skyvern/forge/agent.py index 61bdc71c..7ba7e02e 100644 --- a/skyvern/forge/agent.py +++ b/skyvern/forge/agent.py @@ -187,8 +187,8 @@ class ForgeAgent: task = await app.DATABASE.create_task( url=str(task_request.url), title=task_request.title, - webhook_callback_url=str(task_request.webhook_callback_url), - totp_verification_url=str(task_request.totp_verification_url), + webhook_callback_url=str(task_request.webhook_callback_url) if task_request.webhook_callback_url else None, + totp_verification_url=str(task_request.totp_verification_url) if task_request.totp_verification_url else None, totp_identifier=task_request.totp_identifier, navigation_goal=task_request.navigation_goal, data_extraction_goal=task_request.data_extraction_goal,