aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2017-01-09 15:46:22 +0100
committerThomas Deutschmann <whissi@gentoo.org>2017-01-09 15:46:22 +0100
commitf6db6a76ec4a6940f40cb1181507d183afa32d95 (patch)
tree1b97404b18653efa523f990758e1bdb014cac521
parentAdd initial CVETool CLI utility (diff)
downloadsecurity-f6db6a76ec4a6940f40cb1181507d183afa32d95.tar.gz
security-f6db6a76ec4a6940f40cb1181507d183afa32d95.tar.bz2
security-f6db6a76ec4a6940f40cb1181507d183afa32d95.zip
cvetool: Fix TypeError when requesting CVE info for not yet published CVE
-rwxr-xr-xbin/cvetool2
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']]))