#201 small changes to adapt to new error style and catch specific exceptions that may arise

This commit is contained in:
bharnden 2018-10-10 15:21:26 -07:00
parent c92ce40ddb
commit 2e1bd23cce

View file

@ -468,11 +468,10 @@ class CoreServices(object):
for directory in service.dirs:
try:
node.privatedir(directory)
except Exception, e:
except (CoreCommandError, ValueError) as e:
logger.warn("error mounting private dir '%s' for service '%s': %s",
directory, service.name, e)
# create service files
self.create_service_files(node, service)