From 6acbe2cf43ebde909e8b3c8bcb9a0845cd46f94c Mon Sep 17 00:00:00 2001 From: James Greenhill Date: Mon, 25 Mar 2024 16:53:29 -0700 Subject: [PATCH] exit if things don't work out --- bin/hobby-ci.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/hobby-ci.py b/bin/hobby-ci.py index 22cc91e6fb952..835fadb310335 100644 --- a/bin/hobby-ci.py +++ b/bin/hobby-ci.py @@ -190,7 +190,8 @@ def handle_sigint(self): def export_droplet(self): if not self.droplet or not self.record: - return + print("Droplet or DNS record not found. Exiting") + exit(1) record_id = self.record["domain_record"]["id"] record_name = self.record["domain_record"]["name"] droplet_id = self.droplet.id