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

show-fixed-kernel-cves: fix type error when converting cve list #145

Merged
merged 1 commit into from
Jun 1, 2023

Conversation

dongsupark
Copy link
Member

@dongsupark dongsupark commented May 31, 2023

In some cases, when running show-fixed-kernel-cves.py with python 3.7+, it fails to run with the following errors:

Traceback (most recent call last):
  File ".../show-fixed-kernel-cves.py", line 68, in <module>
    print_fixed_linux_cves(options.from_version, options.to_version)
  File ".../show-fixed-kernel-cves.py",
line 55, in print_fixed_linux_cves
    for cve, _ in sorted(cvelist):
TypeError: '<' not supported between instances of 'dict' and 'dict'

To solve that, ignore values from the list.

show-fixed-kernel-cves.py Outdated Show resolved Hide resolved
In some cases, when running show-fixed-kernel-cves with python 3.7+,
show-fixed-kernel-cves fails to run with the following errors:

```
Traceback (most recent call last):
  File ".../show-fixed-kernel-cves.py", line 68, in <module>
    print_fixed_linux_cves(options.from_version, options.to_version)
  File ".../show-fixed-kernel-cves.py",
line 55, in print_fixed_linux_cves
    for cve, _ in sorted(cvelist):
TypeError: '<' not supported between instances of 'dict' and 'dict'
```

To solve that, ignore the values from the list.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants