diff options
author | 2017-01-09 15:46:22 +0100 | |
---|---|---|
committer | 2017-01-09 15:46:22 +0100 | |
commit | f6db6a76ec4a6940f40cb1181507d183afa32d95 (patch) | |
tree | 1b97404b18653efa523f990758e1bdb014cac521 | |
parent | Add initial CVETool CLI utility (diff) | |
download | security-f6db6a76ec4a6940f40cb1181507d183afa32d95.tar.gz security-f6db6a76ec4a6940f40cb1181507d183afa32d95.tar.bz2 security-f6db6a76ec4a6940f40cb1181507d183afa32d95.zip |
cvetool: Fix TypeError when requesting CVE info for not yet published CVE
-rwxr-xr-x | bin/cvetool | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/cvetool b/bin/cvetool index 8e388e0..d6c2f6d 100755 --- a/bin/cvetool +++ b/bin/cvetool @@ -50,7 +50,7 @@ class CVETool: print(' CVE ID: ' + data['cve_id']) print(' Summary: ' + data['summary']) - print(' Published: ' + data['published_at']) + print(' Published: ' + (data['published_at'] if data['published_at'] is not None else "Not yet published")) print('-' * 80) print(' State: ' + data['state']) print(' Bugs: ' + ' , '.join(['https://bugs.gentoo.org/' + str(bug) for bug in data['bugs']])) |