Commit e58f6bd2 authored by Chris McDonough's avatar Chris McDonough

The getObject method of the AbstractCatalogBrains class used a

"bareword" except: pass in a try: statement.  It now writes
a log message before passing.
parent d7ecc864
......@@ -14,6 +14,8 @@
__version__ = "$Revision$"[11:-2]
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 @@ class AbstractCatalogBrain(Record.Record, Acquisition.Implicit):
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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment