commit: f6db6a76ec4a6940f40cb1181507d183afa32d95
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 9 14:46:22 2017 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Mon Jan 9 14:46:22 2017 +0000
URL: https://gitweb.gentoo.org/proj/security.git/commit/?id=f6db6a76
cvetool: Fix TypeError when requesting CVE info for not yet published CVE
bin/cvetool | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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']]))