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
1 changed files with 4 additions and 1 deletions

View File

@ -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):