Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execution is halted if a Hook with no name is provided #20

Closed
noxdafox opened this issue Apr 27, 2016 · 1 comment
Closed

Execution is halted if a Hook with no name is provided #20

noxdafox opened this issue Apr 27, 2016 · 1 comment

Comments

@noxdafox
Copy link
Contributor

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/sandbox/task_manager.py", line 38, in process_task
    self.execute_task(task, results_path)
  File "/usr/lib/python3/dist-packages/sandbox/task_manager.py", line 58, in execute_task
    run_sandbox(parameters)
  File "/usr/lib/python3/dist-packages/sandbox/sandbox.py", line 38, in run_sandbox
    identifier=parameters.identifier) as environment:
  File "/usr/local/lib/python3.4/dist-packages/see/environment.py", line 59, in __enter__
    self.allocate()
  File "/usr/local/lib/python3.4/dist-packages/see/environment.py", line 80, in allocate
    self._allocate()
  File "/usr/local/lib/python3.4/dist-packages/see/environment.py", line 88, in _allocate
    self._context)
  File "/usr/local/lib/python3.4/dist-packages/see/hooks.py", line 33, in hooks_factory
    manager.load_hooks(context)
  File "/usr/local/lib/python3.4/dist-packages/see/hooks.py", line 55, in load_hooks
    self._load_hook(hook['name'], config, context)
KeyError: 'name'

It would probably be better to report the problematic Hook and continue the execution.

@noxdafox noxdafox mentioned this issue Apr 27, 2016
@noxdafox noxdafox reopened this Apr 28, 2016
@noxdafox
Copy link
Contributor Author

Issue resolved by submitted patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant