Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Check without project #92

Closed
4rokis opened this issue Feb 5, 2020 · 0 comments · Fixed by #95
Closed

Check without project #92

4rokis opened this issue Feb 5, 2020 · 0 comments · Fixed by #95
Assignees
Labels
bug Something isn't working

Comments

@4rokis
Copy link
Contributor

4rokis commented Feb 5, 2020

Running check on wrong directory gives

(license.sh) [theodore@milacik license.sh]$ ./license-sh ..
Config file '../.license-sh.json' not found...
Traceback (most recent call last):
  File "./license-sh", line 2, in <module>
    from license_sh import __main__
  File "/home/theodore/Workspace/license.sh/license_sh/__main__.py", line 25, in <module>
    run_license_sh(arguments)
  File "/home/theodore/Workspace/license.sh/license_sh/commands/run_license_sh.py", line 66, in run_license_sh
    dep_tree, whitelist, ignored_packages=ignored_packages, get_full_tree=tree
  File "/home/theodore/Workspace/license.sh/license_sh/helpers.py", line 218, in get_dependency_tree_with_licenses
    dep_tree, whitelist=whitelist, ignored_packages=ignored_packages
  File "/home/theodore/Workspace/license.sh/license_sh/helpers.py", line 159, in annotate_dep_tree
    node.license_normalized = normalize_license_expression(node.license)
AttributeError: 'NoneType' object has no attribute 'license'
(license.sh) [theodore@milacik license.sh]$ 

There should be more readable error

@4rokis 4rokis added the bug Something isn't working label Feb 5, 2020
@4rokis 4rokis self-assigned this Feb 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant