From 316ee6adb985cddb46b610e057196de22cd8b6f0 Mon Sep 17 00:00:00 2001 From: parente Date: Mon, 30 Apr 2007 20:48:14 +0000 Subject: [PATCH] * accessible.py: Fixed bug #434686, wrong exception caught git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@910 e2bd861d-eb25-0410-b326-f6ed22b6b98c --- pyatspi/ChangeLog | 5 +++++ pyatspi/accessible.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pyatspi/ChangeLog b/pyatspi/ChangeLog index ccdacd8..401a033 100644 --- a/pyatspi/ChangeLog +++ b/pyatspi/ChangeLog @@ -1,3 +1,8 @@ +2007-04-30 Peter Parente + + * accessible.py: + Fixed bug #434686, wrong exception caught + 2007-04-27 Li Yuan Patch from Peter. diff --git a/pyatspi/accessible.py b/pyatspi/accessible.py index a2a047b..d1fc358 100644 --- a/pyatspi/accessible.py +++ b/pyatspi/accessible.py @@ -380,7 +380,7 @@ class _AccessibleMixin(object): for i in xrange(self.childCount): try: yield self.getChildAtIndex(i) - except constants.CORBAException: + except LookupError: yield None def __str__(self): -- 2.7.4