From ede01e394ed31d932fefda410984bd76fc018825 Mon Sep 17 00:00:00 2001 From: Ricardo Branco Date: Wed, 5 Jun 2024 23:29:08 +0200 Subject: [PATCH] Do not exit if one service fails --- bugme.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bugme.py b/bugme.py index 31d03eb..901f2bc 100755 --- a/bugme.py +++ b/bugme.py @@ -95,11 +95,11 @@ def get_clients( cls = guess_service(host) if cls is None: logging.error("Unknown: %s", host) - sys.exit(1) - clients[host] = cls(host, creds.get(host, {})) + else: + clients[host] = cls(host, creds.get(host, {})) if len(clients) == 0: - sys.exit(0) + sys.exit(1) return clients