#201 small changes to adapt to new error style and catch specific exceptions that may arise
This commit is contained in:
parent
c92ce40ddb
commit
2e1bd23cce
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue