Skip to content

Commit

Permalink
The getObject method of the AbstractCatalogBrains class used a
Browse files Browse the repository at this point in the history
"bareword" except: pass in a try: statement.  It now writes
a log message before passing.
  • Loading branch information
mcdonc committed Jun 30, 2002
1 parent c6d348f commit 57c7ff4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CatalogBrains.py
Expand Up @@ -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
Expand Down Expand Up @@ -44,6 +46,8 @@ def getObject(self, REQUEST=None):
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):
Expand Down

0 comments on commit 57c7ff4

Please sign in to comment.