Index: pyatspi-0.1.5/pyatspi/__init__.py
===================================================================
--- pyatspi-0.1.5.orig/pyatspi/__init__.py
+++ pyatspi-0.1.5/pyatspi/__init__.py
@@ -13,14 +13,18 @@
 #Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 try:
+    gconf = None
+    gconfClient = None
     import gconf
     gconfClient = gconf.client_get_default()
     useCorba = gconfClient.get_bool("/desktop/gnome/interface/at-spi-corba")
 except:
     useCorba = False
 finally:
-    del gconfClient
-    del gconf
+    if gconfClient:
+        del gconfClient
+    if gconf:
+        del gconf
 
 if useCorba:
     import sys
