From d7ac64218e0c1d1a880315fd8aea0abb95a97adc Mon Sep 17 00:00:00 2001 From: eitani Date: Tue, 30 Oct 2007 17:58:12 +0000 Subject: [PATCH] * accessible.py (_AccessibleMixin.__del__): Catch TypeError exception when _ACCESSIBLE_CACHE[hash(self)] is None (bug #491805). git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@963 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 b558cd0..a865000 100644 --- a/pyatspi/ChangeLog +++ b/pyatspi/ChangeLog @@ -1,3 +1,8 @@ +2007-10-30 Eitan Isaacson + + * accessible.py (_AccessibleMixin.__del__): Catch TypeError + exception when _ACCESSIBLE_CACHE[hash(self)] is None (bug #491805). + 2007-10-25 Eitan Isaacson * event.py (Event.__init__): Catch AttributeError when ref()ing diff --git a/pyatspi/accessible.py b/pyatspi/accessible.py index 433d05b..f022ca2 100644 --- a/pyatspi/accessible.py +++ b/pyatspi/accessible.py @@ -372,7 +372,7 @@ class _AccessibleMixin(object): ''' try: del _ACCESSIBLE_CACHE[hash(self)] - except KeyError: + except Exception: pass try: self.unref() -- 2.7.4