Skip to content

Commit

Permalink
exit if things don't work out
Browse files Browse the repository at this point in the history
  • Loading branch information
fuziontech committed Mar 25, 2024
1 parent f7d8b8b commit 6acbe2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/hobby-ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6acbe2c

Please sign in to comment.