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 89613138247 for ; Wed, 22 Jan 2014 05:04:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 06BFEE1186; Wed, 22 Jan 2014 05:04:17 +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 0DF4FE117F for ; Wed, 22 Jan 2014 05:04:16 +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 3C33833FAF6 for ; Wed, 22 Jan 2014 05:04:15 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 54AA1187CF for ; Wed, 22 Jan 2014 05:04:13 +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: <1390365325.f60f19ae5e6c6a82beb045e18465d62fd1e85f50.dol-sen@gentoo> Subject: [gentoo-commits] proj/catalyst:3.0 commit in: catalyst/ X-VCS-Repository: proj/catalyst X-VCS-Files: catalyst/main.py X-VCS-Directories: catalyst/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: f60f19ae5e6c6a82beb045e18465d62fd1e85f50 X-VCS-Branch: 3.0 Date: Wed, 22 Jan 2014 05:04:13 +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: e904dc20-8dd0-4032-a7cc-4ee12b99c6fd X-Archives-Hash: 176fcfd88da828badff5f1b1b4c52f97 commit: f60f19ae5e6c6a82beb045e18465d62fd1e85f50 Author: Brian Dolbec gentoo org> AuthorDate: Wed Jan 22 01:54:08 2014 +0000 Commit: Brian Dolbec gmail com> CommitDate: Wed Jan 22 04:35:25 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=f60f19ae Remove excessive exceptions hiding tracebacks --- catalyst/main.py | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/catalyst/main.py b/catalyst/main.py index 6f8bd8d..0366932 100644 --- a/catalyst/main.py +++ b/catalyst/main.py @@ -349,10 +349,10 @@ def main(): try: build_target(addlargs) - except CatalystError: - print - print "Catalyst aborting...." - sys.exit(2) + #except CatalystError: + # print + # print "Catalyst aborting...." + # sys.exit(2) except KeyboardInterrupt: print "\nCatalyst build aborted due to user interrupt ( Ctrl-C )" print @@ -361,24 +361,8 @@ def main(): except LockInUse: print "Catalyst aborting...." sys.exit(2) - except: - print "Catalyst aborting...." - raise - sys.exit(2) - - #except CatalystError: - # print - # print "Catalyst aborting...." - # sys.exit(2) - #except KeyError: - # print "\nproblem with command line or spec file ( Key Error )" - # print "Key: "+str(sys.exc_value)+" was not found" + #except: # print "Catalyst aborting...." - # sys.exit(2) - #except UnboundLocalError: - # print - # print "UnboundLocalError: "+str(sys.exc_value)+" was not found" # raise - # print - # print "Catalyst aborting...." # sys.exit(2) +