* accessible.py (_AccessibleMixin.__del__): Catch TypeError
authoreitani <eitani@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Tue, 30 Oct 2007 17:58:12 +0000 (17:58 +0000)
committereitani <eitani@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Tue, 30 Oct 2007 17:58:12 +0000 (17:58 +0000)
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
pyatspi/accessible.py

index b558cd0..a865000 100644 (file)
@@ -1,3 +1,8 @@
+2007-10-30  Eitan Isaacson  <eitan@ascender.com>
+
+       * accessible.py (_AccessibleMixin.__del__): Catch TypeError 
+       exception when _ACCESSIBLE_CACHE[hash(self)] is None (bug #491805).
+
 2007-10-25  Eitan Isaacson  <eitan@ascender.com>
 
        * event.py (Event.__init__): Catch AttributeError when ref()ing 
index 433d05b..f022ca2 100644 (file)
@@ -372,7 +372,7 @@ class _AccessibleMixin(object):
     '''
     try:
       del _ACCESSIBLE_CACHE[hash(self)]
-    except KeyError:
+    except Exception:
       pass
     try:
       self.unref()