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 723CA139578 for ; Thu, 10 Nov 2016 02:59:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CE824E0881; Thu, 10 Nov 2016 02:59:50 +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 B2F88E0881 for ; Thu, 10 Nov 2016 02:59:50 +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 8B728341643 for ; Thu, 10 Nov 2016 02:59:49 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EB6C1308 for ; Thu, 10 Nov 2016 02:59:47 +0000 (UTC) From: "Devan Franchini" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Devan Franchini" Message-ID: <1478746674.75899bb9d56f9125fc1bda496eb0e8ff9c2b6e72.twitch153@gentoo> Subject: [gentoo-commits] proj/layman:master commit in: bin/ X-VCS-Repository: proj/layman X-VCS-Files: bin/layman X-VCS-Directories: bin/ X-VCS-Committer: twitch153 X-VCS-Committer-Name: Devan Franchini X-VCS-Revision: 75899bb9d56f9125fc1bda496eb0e8ff9c2b6e72 X-VCS-Branch: master Date: Thu, 10 Nov 2016 02:59:47 +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: 5379611d-0db2-4243-a618-37afdeb48be0 X-Archives-Hash: d4b1c5042cd35700b4d69d3ef2aec435 commit: 75899bb9d56f9125fc1bda496eb0e8ff9c2b6e72 Author: Devan Franchini gentoo org> AuthorDate: Thu Nov 10 02:57:51 2016 +0000 Commit: Devan Franchini gentoo org> CommitDate: Thu Nov 10 02:57:54 2016 +0000 URL: https://gitweb.gentoo.org/proj/layman.git/commit/?id=75899bb9 bin/layman: Adds exception handling on ^c bug 539336 bin/layman | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/layman b/bin/layman index ba91c20..fbb793b 100755 --- a/bin/layman +++ b/bin/layman @@ -42,4 +42,7 @@ except KeyError: pass main = Main(ArgsParser(root=root)) -main() +try: + main() +except KeyboardInterrupt: + print('Interrupt received, exiting...')