Log message for revision 39829:
  Move code inside try/except.
  

Changed:
  U   
Zope/branches/philikon-zope32-integration/lib/python/Products/SiteErrorLog/tests/testSiteErrorLog.py

-=-
Modified: 
Zope/branches/philikon-zope32-integration/lib/python/Products/SiteErrorLog/tests/testSiteErrorLog.py
===================================================================
--- 
Zope/branches/philikon-zope32-integration/lib/python/Products/SiteErrorLog/tests/testSiteErrorLog.py
        2005-11-01 21:26:30 UTC (rev 39828)
+++ 
Zope/branches/philikon-zope32-integration/lib/python/Products/SiteErrorLog/tests/testSiteErrorLog.py
        2005-11-01 21:31:49 UTC (rev 39829)
@@ -21,11 +21,11 @@
     def setUp(self):
         transaction.begin()
         self.app = makerequest(Zope2.app())
-        if not hasattr(self.app, 'error_log'):
-            # If ZopeLite was imported, we have no default error_log
-            from Products.SiteErrorLog.SiteErrorLog import SiteErrorLog
-            self.app._setObject('error_log', SiteErrorLog())
         try:
+            if not hasattr(self.app, 'error_log'):
+                # If ZopeLite was imported, we have no default error_log
+                from Products.SiteErrorLog.SiteErrorLog import SiteErrorLog
+                self.app._setObject('error_log', SiteErrorLog())
             self.app.manage_addDTMLMethod('doc', '')
         except:
             self.tearDown()

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to