Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

If recipe doesnt have docstring error is thrown but doesnt explain why  #139

@AutomatedTester

Description

@AutomatedTester

I created a new recipe .py and when I ran it I got an error throw but didnt explain what I did wrong

(data) davidburns in ~/development/mochivswpt-recipes(ruby-2.6.0) λ adr mochivswpt         
Traceback (most recent call last):
  File "/Users/davidburns/.virtualenvs/data/bin/adr", line 10, in <module>
    sys.exit(main())
  File "/Users/davidburns/.virtualenvs/data/lib/python3.7/site-packages/adr/cli.py", line 227, in main
    result = handler(remainder)
  File "/Users/davidburns/.virtualenvs/data/lib/python3.7/site-packages/adr/cli.py", line 180, in handle_recipe
    data = run_recipe(config.recipe, remainder)
  File "/Users/davidburns/.virtualenvs/data/lib/python3.7/site-packages/adr/recipe.py", line 83, in run_recipe
    doc = get_docstring(recipe, fmt="text")
  File "/Users/davidburns/.virtualenvs/data/lib/python3.7/site-packages/adr/recipe.py", line 117, in get_docstring
    lines = doc.splitlines()
AttributeError: 'NoneType' object has no attribute 'splitlines'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions