From 827ad6aa887eed8ae0dcebc5677f3caea4b03605 Mon Sep 17 00:00:00 2001
From: Alexandre Boeglin <alex@nexedi.com>
Date: Wed, 6 Apr 2005 17:23:18 +0000
Subject: [PATCH] Do not try to remove '_v_catalog_schema_dict' if it does not
 exist (e.g. when creating a new site).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2838 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ZSQLCatalog/SQLCatalog.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/product/ZSQLCatalog/SQLCatalog.py b/product/ZSQLCatalog/SQLCatalog.py
index 1489c16937..e300d3e02e 100755
--- a/product/ZSQLCatalog/SQLCatalog.py
+++ b/product/ZSQLCatalog/SQLCatalog.py
@@ -465,7 +465,8 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base):
         pass
 
     # Remove the cache of catalog schema.
-    del self._v_catalog_schema_dict
+    if hasattr(self, '_v_catalog_schema_dict') :
+      del self._v_catalog_schema_dict
     
     self._clearSecurityCache()
 
-- 
2.30.9