You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ rhsecapi --q-pagenum 7 --loglevel debug
[INFO ] rhsda: Getting https://access.redhat.com/labs/securitydataapi/cve.json?page=7
[DEBUG ] rhsda: Return '.../cve.json?page=7': Status 200, Content-Type application/json
[NOTICE ] rhsda: 1000 CVEs found with search query
Traceback (most recent call last):
File "/usr/bin/rhsecapi", line 420, in <module>
main(opts)
File "/usr/bin/rhsecapi", line 363, in main
searchOutput = apiclient.cve_search_query(params=opts.searchParams, outFormat=opts.outFormat, urls=opts.printUrls)
File "/usr/share/rhsecapi/rhsda.py", line 918, in cve_search_query
return self._columnize(rows, sep=" ")
File "/usr/share/rhsecapi/rhsda.py", line 924, in _columnize
widths = [ max(map(len, col)) for col in zip(*rows) ]
TypeError: object of type 'NoneType' has no len()
The text was updated successfully, but these errors were encountered:
Digging a little deeper, I see this is because of an erroneous assumption I made about the data returned by the API. In my initial investigation, I saw that CVE records would often lack an attribute (like CVSS2 or 3), but I didn't notice that sometimes an attribute will be present with a null value, e.g.:
The text was updated successfully, but these errors were encountered: