Index: pyatspi/accessible.py
===================================================================
--- pyatspi/accessible.py	(revision 959)
+++ pyatspi/accessible.py	(working copy)
@@ -372,7 +372,7 @@
     '''
     try:
       del _ACCESSIBLE_CACHE[hash(self)]
-    except KeyError:
+    except Exception:
       pass
     try:
       self.unref()
