raise when flow_id is not found
This commit is contained in:
parent
07921d69c5
commit
5aca76584d
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ class FlowsService:
|
||||||
str: The path to the flow file, or None if not found
|
str: The path to the flow file, or None if not found
|
||||||
"""
|
"""
|
||||||
if not flow_id:
|
if not flow_id:
|
||||||
return None
|
raise ValueError("flow_id is required")
|
||||||
|
|
||||||
# Check cache first
|
# Check cache first
|
||||||
if flow_id in self._flow_file_cache:
|
if flow_id in self._flow_file_cache:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue