Skip to content

bad non-descriptive error message 'NoneType' object is not subscriptable #255

@alecGraves

Description

@alecGraves

This error message should be improved so it doesn't scare people, perhaps by describing exactly what data is set to None and maybe the line number of the input file.

Here is an example of a malformatted .repo file:

# example.repo
repositories:
  bad:
  ament_cmake:
    type: git
    url: https://github.com/ament/ament_cmake.git
    version: humble

And here is the resulting output of vcs:

$ vcs import --input example.repos src
Input data is not valid format: 'NoneType' object is not subscriptable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions