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

Subtasks without 'name' field throw exceptions #2

@lottspot

Description

@lottspot

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions