From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SESj7-0001aQ-Jj for garchives@archives.gentoo.org; Sun, 01 Apr 2012 21:54:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9CD12E09C1; Sun, 1 Apr 2012 21:54:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 638FDE09C1 for ; Sun, 1 Apr 2012 21:54:14 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B28A61B4014 for ; Sun, 1 Apr 2012 21:54:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 6F667E5403 for ; Sun, 1 Apr 2012 21:54:12 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1333317178.4e781a58ea922911d09287e95b0c666216212e4a.dol-sen@gentoo> Subject: [gentoo-commits] proj/layman:master commit in: layman/ X-VCS-Repository: proj/layman X-VCS-Files: layman/api.py X-VCS-Directories: layman/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 4e781a58ea922911d09287e95b0c666216212e4a X-VCS-Branch: master Date: Sun, 1 Apr 2012 21:54:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 42f7378f-019c-4d64-b5c8-b71aaf2f3668 X-Archives-Hash: 2bb30b0b16877f91fbe0dcd61d161581 commit: 4e781a58ea922911d09287e95b0c666216212e4a Author: Brian Dolbec gentoo org> AuthorDate: Sun Apr 1 21:52:58 2012 +0000 Commit: Brian Dolbec gmail com> CommitDate: Sun Apr 1 21:52:58 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/layman.git;a=3D= commit;h=3D4e781a58 fix news exception for py2.5 comaptability. --- layman/api.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/layman/api.py b/layman/api.py index 2f6c183..7b3111f 100755 --- a/layman/api.py +++ b/layman/api.py @@ -582,7 +582,7 @@ class LaymanAPI(object): elif self.config['news_reporter'] =3D=3D 'pkgcore': # pkgcore is not yet capable return - except Exception as err: + except Exception, err: msg =3D "update_news() failed running %s news reporter funct= ion\n" +\ "Error was; %s" self._error(msg % (self.config['news_reporter'], err))