From d9a756b50efe388aeaec63133e97d8dbb4dca004 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 6 Feb 2020 15:33:01 +0100 Subject: [PATCH] Catch filenotfound errors when launching etcd --- uncloud/hack/db.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/uncloud/hack/db.py b/uncloud/hack/db.py index cb5e490..9086865 100644 --- a/uncloud/hack/db.py +++ b/uncloud/hack/db.py @@ -53,7 +53,10 @@ class DB(object): # Can be set from outside self.prefix = prefix - self.connect() + try: + self.connect() + except FileNotFoundError as e: + raise UncloudException("Is the path to the etcd certs correct? {}".format(e)) @readable_errors def connect(self):