j
This commit is contained in:
@@ -191,6 +191,8 @@ class ZeroTier(Store):
|
||||
try:
|
||||
import httpx
|
||||
resp = httpx.request(method, url, params=params, json=json_body, headers=headers, timeout=timeout or self._timeout)
|
||||
if resp.status_code == 401:
|
||||
log(f"[Store={self._name}] Remote service at {url} requires an API Key. Please configure 'API_KEY' for this store.", severity="warning")
|
||||
resp.raise_for_status()
|
||||
try:
|
||||
return resp.json()
|
||||
|
||||
Reference in New Issue
Block a user