Auto backup: 2026-02-20 13:01
This commit is contained in:
BIN
skills/n8n/scripts/__pycache__/n8n_api.cpython-311.pyc
Normal file
BIN
skills/n8n/scripts/__pycache__/n8n_api.cpython-311.pyc
Normal file
Binary file not shown.
@@ -17,9 +17,12 @@ class N8nClient:
|
||||
"""n8n API client"""
|
||||
|
||||
def __init__(self, base_url: str = None, api_key: str = None):
|
||||
self.base_url = base_url or os.getenv('N8N_BASE_URL')
|
||||
raw_base = base_url or os.getenv('N8N_BASE_URL')
|
||||
self.base_url = raw_base.rstrip('/') if raw_base else None
|
||||
self.api_key = api_key or os.getenv('N8N_API_KEY')
|
||||
|
||||
|
||||
if not self.base_url:
|
||||
raise ValueError("N8N_BASE_URL not found in environment")
|
||||
if not self.api_key:
|
||||
raise ValueError("N8N_API_KEY not found in environment")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user