fix(platform): use is not None in routing to match validator semantics

Empty template_url="" was accepted by validator but caused assertion
error in routing logic due to truthiness mismatch.
This commit is contained in:
Zamil Majdy
2026-03-16 22:18:39 +07:00
parent 684ba74667
commit 6e4c8e3393

View File

@@ -68,7 +68,7 @@ async def import_competitor_workflow(
using LLM-powered block mapping.
"""
# Step 1: Get the raw workflow JSON
if request.template_url:
if request.template_url is not None:
try:
workflow_json = await fetch_n8n_template(request.template_url)
except (ValueError, RuntimeError) as e: