mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-14 13:05:09 +00:00
fix(services): re-raise ClickException for better error handling in remote services cache
This commit is contained in:
@@ -209,6 +209,8 @@ class Services(click.Group):
|
||||
result = client.get("/api/services")
|
||||
Services._remote_services_cache = result.get("services", [])
|
||||
return Services._remote_services_cache
|
||||
except click.ClickException:
|
||||
raise
|
||||
except Exception:
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user