[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/ZCatalog/__init__.py More robust.

Florent Guillaume fg at nuxeo.com
Thu Jun 1 07:56:37 EDT 2006


Log message for revision 68435:
  More robust.

Changed:
  U   Zope/trunk/lib/python/Products/ZCatalog/__init__.py

-=-
Modified: Zope/trunk/lib/python/Products/ZCatalog/__init__.py
===================================================================
--- Zope/trunk/lib/python/Products/ZCatalog/__init__.py	2006-06-01 11:56:03 UTC (rev 68434)
+++ Zope/trunk/lib/python/Products/ZCatalog/__init__.py	2006-06-01 11:56:36 UTC (rev 68435)
@@ -23,7 +23,10 @@
     from ZClasses import createZClassForBase
 finally:
     del warnings.filters[-1]
-    del __warningregistry__
+    try:
+        del __warningregistry__
+    except NameError:
+        pass
 
 createZClassForBase( ZCatalog.ZCatalog , globals()
                    , 'ZCatalogBase', 'ZCatalog' )



More information about the Zope-Checkins mailing list