Skip to content
Snippets Groups Projects
Commit 25916ca6 authored by Anael Beutot's avatar Anael Beutot
Browse files

Catch exception for jobs storage directory

parent f26f02c9
No related branches found
No related tags found
No related merge requests found
......@@ -193,8 +193,13 @@ class Handler(BasePlugin):
self.shells = dict()
#: jobs manager (different from MainLoop.jobs_manager)
self.jobs_manager = JobsManager(logger, NodeJobsManagerInterface(self),
JobsStore(self.main.config.jobs_store_path))
try:
self.jobs_manager = JobsManager(logger, NodeJobsManagerInterface(self),
JobsStore(self.main.config.jobs_store_path))
except EnvironmentError as e:
logger.critical('Cannot access jobs directory: %s', e.strerror)
self.main.stop()
raise
#: loaded plugins
self.plugins = {} # plugin name -> plugin object
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment