mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-27 17:56:25 +02:00
attribute error fixed
This commit is contained in:
parent
c1975091ce
commit
3d52a5e9d6
1 changed files with 3 additions and 0 deletions
|
|
@ -460,6 +460,9 @@ def validate_connector_config(connector_type: str | Any, config: dict[str, Any])
|
|||
Raises:
|
||||
ValueError: If validation fails
|
||||
"""
|
||||
if not isinstance(config, dict) or isinstance(config, bool):
|
||||
raise ValueError("config must be a dictionary of connector settings")
|
||||
|
||||
# Convert enum to string if needed
|
||||
connector_type_str = str(connector_type).split('.')[-1] if hasattr(connector_type, 'value') else str(connector_type)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue