Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running ntia-checker without arguments fails with non-useful error #139

Closed
lumjjb opened this issue Aug 1, 2023 · 0 comments · Fixed by #140
Closed

Running ntia-checker without arguments fails with non-useful error #139

lumjjb opened this issue Aug 1, 2023 · 0 comments · Fixed by #140
Labels
bug Something isn't working

Comments

@lumjjb
Copy link
Contributor

lumjjb commented Aug 1, 2023

Running ntia-checker without arguments provides an error message that isn't helpful. (i for a while thought i had library issues), should have a more useful error. Will create a PR.

➜  ntia-conformance-checker git:(main) python3 ntia_conformance_checker/main.py
Traceback (most recent call last):
  File "/Users/lumb/git/ntia-conformance-checker/ntia_conformance_checker/main.py", line 71, in <module>
    main()
  File "/Users/lumb/git/ntia-conformance-checker/ntia_conformance_checker/main.py", line 51, in main
    sbom = SbomChecker(args.file)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/ntia_conformance_checker/sbom_checker.py", line 20, in __init__
    self.doc = self.parse_file()
               ^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/ntia_conformance_checker/sbom_checker.py", line 37, in parse_file
    if not os.path.exists(self.file):
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen genericpath>", line 19, in exists
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
@jspeed-meyers jspeed-meyers added the bug Something isn't working label Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants