#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:
|
for directory in service.dirs:
|
||||||
try:
|
try:
|
||||||
node.privatedir(directory)
|
node.privatedir(directory)
|
||||||
except Exception, e:
|
except (CoreCommandError, ValueError) as e:
|
||||||
logger.warn("error mounting private dir '%s' for service '%s': %s",
|
logger.warn("error mounting private dir '%s' for service '%s': %s",
|
||||||
directory, service.name, e)
|
directory, service.name, e)
|
||||||
|
|
||||||
|
|
||||||
# create service files
|
# create service files
|
||||||
self.create_service_files(node, service)
|
self.create_service_files(node, service)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue