webscopeio / license.sh

License checker tool - We're in a beta phase, any help is appreciated, especially reporting issues
https://webscopeio.github.io/license.sh
MIT License
40 stars 6 forks source link

Yarn dependency presence #121

Closed 4rokis closed 4 years ago

4rokis commented 4 years ago
[2020-04-17T00:23:17Z] Traceback (most recent call last):
  File "/usr/local/bin/license-sh", line 2, in <module>
    from license_sh import __main__
  File "/usr/local/lib/python3.8/site-packages/license_sh/__main__.py", line 26, in <module>
    run_license_sh(arguments)
  File "/usr/local/lib/python3.8/site-packages/license_sh/commands/run_license_sh.py", line 67, in run_license_sh
    dep_tree = run_check(project_to_check, path, silent, debug)
  File "/usr/local/lib/python3.8/site-packages/license_sh/runners/__init__.py", line 20, in run_check
    return runner(path, silent, debug).check()
  File "/usr/local/lib/python3.8/site-packages/license_sh/runners/yarn/__init__.py", line 339, in check
    dep_tree = get_dependency_tree(flat_tree, package_json, package_map)
  File "/usr/local/lib/python3.8/site-packages/license_sh/runners/yarn/__init__.py", line 288, in get_dependency_tree
    dependencies=dependency.get("dependencies"),
AttributeError: 'NoneType' object has no attribute 'get'