mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user