aboutcode-org / aboutcode-org/scancode-toolkit

Scan error when scanning partial ABOUT file

未关闭
#2,745 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
2.6k
派生
791
平均合并
1 天 12 小时
30 天内合并 PR
5

描述

The --package scan of a file name foo.ABOUT with:
`download_url: https://raw.githubusercontent.com/docker/docker/ff2de8dace1ba1c1f5e8542790ef5cd564375934/image/spec/v1.1.md`
fails to scan with:
```
scan_errors:
- |
ERROR: for scanner: packages:
ERROR: Unknown error:
Traceback (most recent call last):
File "/scancode-toolkit-master2/src/scancode/interrupt.py", line 91, in interruptible
return NO_ERROR, func(*(args or ()), **(kwargs or {}))
File "/scancode-toolkit-master2/src/scancode/api.py", line 344, in get_package_manifests
return dict(package_manifests=[
File "/scancode-toolkit-master2/src/scancode/api.py", line 345, in
package_manifests.to_dict()
AttributeError: 'NoneType' object has no attribute 'to_dict'
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。