Catch filenotfound errors when launching etcd

This commit is contained in:
Nico Schottelius 2020-02-06 15:33:01 +01:00
parent 592b745cea
commit d9a756b50e

View file

@ -53,7 +53,10 @@ class DB(object):
# Can be set from outside # Can be set from outside
self.prefix = prefix self.prefix = prefix
try:
self.connect() self.connect()
except FileNotFoundError as e:
raise UncloudException("Is the path to the etcd certs correct? {}".format(e))
@readable_errors @readable_errors
def connect(self): def connect(self):