[Zope-Checkins] CVS: Zope/lib/python/Products/ZCatalog - CatalogBrains.py:1.6
Chris McDonough
chrism@zope.com
Sun, 30 Jun 2002 02:37:54 -0400
Update of /cvs-repository/Zope/lib/python/Products/ZCatalog
In directory cvs.zope.org:/tmp/cvs-serv23421
Modified Files:
CatalogBrains.py
Log Message:
The getObject method of the AbstractCatalogBrains class used a
"bareword" except: pass in a try: statement. It now writes
a log message before passing.
=== Zope/lib/python/Products/ZCatalog/CatalogBrains.py 1.5 => 1.6 ===
import Acquisition, Record
+import zLOG
+import sys
class AbstractCatalogBrain(Record.Record, Acquisition.Implicit):
"""Abstract base brain that handles looking up attributes as
@@ -44,6 +46,8 @@
obj = self.aq_parent.resolve_url(self.getPath(), REQUEST)
return obj
except:
+ zLOG.LOG('CatalogBrains', zLOG.INFO, 'getObject raised an error',
+ error=sys.exc_info())
pass
def getRID(self):