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 <gentoo-commits+bounces-368376-garchives=archives.gentoo.org@lists.gentoo.org>) id 1QoXnm-00012L-0c for garchives@archives.gentoo.org; Wed, 03 Aug 2011 09:31:46 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 349A321C0BF; Wed, 3 Aug 2011 09:31:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id F2D2E21C0BF for <gentoo-commits@lists.gentoo.org>; Wed, 3 Aug 2011 09:31:37 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BC8CA1BC0CA for <gentoo-commits@lists.gentoo.org>; Wed, 3 Aug 2011 09:31:36 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 192048003C for <gentoo-commits@lists.gentoo.org>; Wed, 3 Aug 2011 09:31:36 +0000 (UTC) From: "Wiktor W Brodlo" <wiktor@brodlo.net> To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Wiktor W Brodlo" <wiktor@brodlo.net> Message-ID: <755b077c183da69efeef110d90c4d07ce18ba89e.wiktor@gentoo> Subject: [gentoo-commits] proj/anaconda:master commit in: iw/ X-VCS-Repository: proj/anaconda X-VCS-Files: iw/timezone_gui.py X-VCS-Directories: iw/ X-VCS-Committer: wiktor X-VCS-Committer-Name: Wiktor W Brodlo X-VCS-Revision: 755b077c183da69efeef110d90c4d07ce18ba89e Date: Wed, 3 Aug 2011 09:31:36 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: af9953bc7ea5b8e957b0fa2d587268f1 commit: 755b077c183da69efeef110d90c4d07ce18ba89e Author: wiktor w brodlo <wiktor <AT> brodlo <DOT> net> AuthorDate: Wed Aug 3 09:30:57 2011 +0000 Commit: Wiktor W Brodlo <wiktor <AT> brodlo <DOT> net> CommitDate: Wed Aug 3 09:30:57 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/anaconda.git;= a=3Dcommit;h=3D755b077c iw/timezone_gui.py: enhance custom_widget_handler --- iw/timezone_gui.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iw/timezone_gui.py b/iw/timezone_gui.py index ecac31e..e61dba3 100644 --- a/iw/timezone_gui.py +++ b/iw/timezone_gui.py @@ -64,14 +64,14 @@ class TimezoneWindow(InstallWindow): =20 def custom_widget_handler(self, xml, function_name, widget_name, str= 1, str2, int1, int2): - if isinstance(function_name, string): + try: if hasattr(self, function_name): handler =3D getattr(self, function_name) return handler(str1, str2, int1, int2) else: # Lame. return gtk.Label() - else: + except: return gtk.Label() =20 def timezone_widget_create (self, str1, str2, int1, int2):