Skip to content

Issue reading from CSV files #3

Description

@tdunlap607

I'm trying to run secomlint on a CSV file with commit messages.

The CSV file (sample.csv) is in the following format:

message
"Fix bug CVE-123-4567"
"Fix bug CVE-123-7654"

From the command line I execute the following:

secomlint --from-file sample.csv

I receive the following error:

Traceback (most recent call last):
  File ".venv/bin/secomlint", line 8, in <module>
    sys.exit(main())
  File ".venv/lib/python3.8/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File ".venv/lib/python3.8/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File ".venv/lib/python3.8/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File ".venv/lib/python3.8/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File ".venv/lib/python3.8/site-packages/secomlint/__main__.py", line 92, in main
    entities += section.entities
TypeError: 'NoneType' object is not iterable

Any insight to resolve this issue would be highly appreciated :) Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions