Skip to content
This repository has been archived by the owner on Feb 1, 2019. It is now read-only.

Subtasks without 'name' field throw exceptions #2

Open
lottspot opened this issue Feb 14, 2016 · 1 comment
Open

Subtasks without 'name' field throw exceptions #2

lottspot opened this issue Feb 14, 2016 · 1 comment
Labels

Comments

@lottspot
Copy link
Owner

A task which generates subtasks which do not specify a 'name' task will raise the following exception

Traceback (most recent call last):
  File "/mnt/files/shared/projects/inque-ink/.pyenv/lib/python2.7/site-packages/doit-0.29.0-py2.7.egg/doit/doit_cmd.py", line 168, in run
    return command.parse_execute(args)
  File "/mnt/files/shared/projects/inque-ink/.pyenv/lib/python2.7/site-packages/doit-0.29.0-py2.7.egg/doit/cmd_base.py", line 122, in parse_execute
    return self.execute(params, args)
  File "/mnt/files/shared/projects/inque-ink/.pyenv/lib/python2.7/site-packages/doit-0.29.0-py2.7.egg/doit/cmd_base.py", line 380, in execute
    self, params, args)
  File "build/bdist.linux-x86_64/egg/makeit/loader.py", line 33, in load_tasks
    processed = self._process_makeit_extensions(taskdicts)
  File "build/bdist.linux-x86_64/egg/makeit/loader.py", line 100, in _process_makeit_extensions
    self._makeit_ext_depinject_do(task)
  File "build/bdist.linux-x86_64/egg/makeit/loader.py", line 128, in _makeit_ext_depinject_do
    injected_deps = self._injections.get(task['name'], [])
KeyError: 'name'
@lottspot
Copy link
Owner Author

This seems like poor behavior, but doit may actually handle this condition in same or similar fashion. Makeit should model it's behavior in this situation as closely to doit's behavior as it reasonably can.

@lottspot lottspot added the bug label Feb 14, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant