From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A966C139085 for ; Fri, 13 Jan 2017 10:45:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2F4EDE0C46; Fri, 13 Jan 2017 10:45:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 07C5CE0C46 for ; Fri, 13 Jan 2017 10:45:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C5589341752 for ; Fri, 13 Jan 2017 10:45:18 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6214B2623 for ; Fri, 13 Jan 2017 10:45:17 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1483973182.f6db6a76ec4a6940f40cb1181507d183afa32d95.whissi@gentoo> Subject: [gentoo-commits] proj/security:master commit in: bin/ X-VCS-Repository: proj/security X-VCS-Files: bin/cvetool X-VCS-Directories: bin/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: f6db6a76ec4a6940f40cb1181507d183afa32d95 X-VCS-Branch: master Date: Fri, 13 Jan 2017 10:45:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f510dc97-8064-4839-9a69-7a9a3f9bbb4e X-Archives-Hash: c8cec374e28a0ae904810ecafa3d5887 commit: f6db6a76ec4a6940f40cb1181507d183afa32d95 Author: Thomas Deutschmann gentoo org> AuthorDate: Mon Jan 9 14:46:22 2017 +0000 Commit: Thomas Deutschmann gentoo 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']]))