From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 93DBB1381FA for ; Sun, 1 Jun 2014 15:25:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 03E7EE09C7; Sun, 1 Jun 2014 15:25:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 81856E09C0 for ; Sun, 1 Jun 2014 15:25:44 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A059333FE2C for ; Sun, 1 Jun 2014 15:25:43 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 18BD7181A9 for ; Sun, 1 Jun 2014 15:25:42 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1401474461.8bc4b7b17fb38055579aabbf677da48188687fa6.dol-sen@gentoo> Subject: [gentoo-commits] proj/gentoo-keys:master commit in: gkeys/ X-VCS-Repository: proj/gentoo-keys X-VCS-Files: gkeys/actions.py X-VCS-Directories: gkeys/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 8bc4b7b17fb38055579aabbf677da48188687fa6 X-VCS-Branch: master Date: Sun, 1 Jun 2014 15:25:42 +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: 47766d75-2e42-41bc-88ff-b8fd723310b6 X-Archives-Hash: b36bf87beaa44c6a827835081f97fbd7 commit: 8bc4b7b17fb38055579aabbf677da48188687fa6 Author: Pavlos Ratis gentoo org> AuthorDate: Fri May 30 15:41:32 2014 +0000 Commit: Brian Dolbec gmail com> CommitDate: Fri May 30 18:27:41 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-keys.git;a=commit;h=8bc4b7b1 err message when no seed files available --- gkeys/actions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gkeys/actions.py b/gkeys/actions.py index 79c42ee..1ecf4d3 100644 --- a/gkeys/actions.py +++ b/gkeys/actions.py @@ -59,7 +59,10 @@ class Actions(object): kwargs = handler.build_gkeydict(args) self.logger.debug("ACTIONS: listseed; kwargs: %s" % str(kwargs)) if not self.seeds: - self.seeds = self.load_seeds(args.seeds, args.seedfile) + try: + self.seeds = self.load_seeds(args.seeds, args.seedfile) + except ValueError: + return ["Failed to load seed file. Consider fetching seedfiles."] if self.seeds: results = self.seeds.list(**kwargs) return results