[Zope-Checkins] SVN: Zope/branches/2.10/lib/python/Products/PluginIndexes/__init__.py More robust.

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


Log message for revision 68436:
  More robust.
  

Changed:
  U   Zope/branches/2.10/lib/python/Products/PluginIndexes/__init__.py

-=-
Modified: Zope/branches/2.10/lib/python/Products/PluginIndexes/__init__.py
===================================================================
--- Zope/branches/2.10/lib/python/Products/PluginIndexes/__init__.py	2006-06-01 11:56:36 UTC (rev 68435)
+++ Zope/branches/2.10/lib/python/Products/PluginIndexes/__init__.py	2006-06-01 11:56:50 UTC (rev 68436)
@@ -29,7 +29,10 @@
     import TextIndex.TextIndex
 finally:
     del warnings.filters[-1]
-    del __warningregistry__
+    try:
+        del __warningregistry__
+    except NameError:
+        pass
 
 _indexes =  ('TextIndex',
              'KeywordIndex',



More information about the Zope-Checkins mailing list