mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-16 23:01:06 +02:00
Linting fixed
This commit is contained in:
parent
5afb421d6f
commit
ebea98cfc8
1 changed files with 5 additions and 6 deletions
|
|
@ -470,13 +470,12 @@ def validate_connector_config(
|
||||||
raise ValueError(f"{field_name} must be a non-empty list of strings")
|
raise ValueError(f"{field_name} must be a non-empty list of strings")
|
||||||
|
|
||||||
def validate_firecrawl_api_key_format() -> None:
|
def validate_firecrawl_api_key_format() -> None:
|
||||||
|
"""Validate Firecrawl API key format if provided."""
|
||||||
api_key = config.get("FIRECRAWL_API_KEY", "")
|
api_key = config.get("FIRECRAWL_API_KEY", "")
|
||||||
if api_key and api_key.strip():
|
if api_key and api_key.strip() and not api_key.strip().startswith("fc-"):
|
||||||
# Firecrawl API keys typically start with "fc-"
|
raise ValueError(
|
||||||
if not api_key.strip().startswith("fc-"):
|
"Firecrawl API key should start with 'fc-'. Please verify your API key."
|
||||||
raise ValueError(
|
)
|
||||||
"Firecrawl API key should start with 'fc-'. Please verify your API key."
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def validate_initial_urls() -> None:
|
def validate_initial_urls() -> None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue