Mercurial > p > roundup > code
diff roundup/roundupdb.py @ 644:086f67453062
roundup db: catch only IOError in getfile.
| author | Engelbert Gruber <grubert@users.sourceforge.net> |
|---|---|
| date | Mon, 25 Feb 2002 14:23:00 +0000 |
| parents | 993e0162b7c2 |
| children | b3b483e0fd5e |
line wrap: on
line diff
--- a/roundup/roundupdb.py Mon Feb 25 04:32:21 2002 +0000 +++ b/roundup/roundupdb.py Mon Feb 25 14:23:00 2002 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: roundupdb.py,v 1.45 2002-02-20 15:48:45 grubert Exp $ +# $Id: roundupdb.py,v 1.46 2002-02-25 14:22:59 grubert Exp $ __doc__ = """ Extending hyperdb with types specific to issue-tracking. @@ -232,10 +232,10 @@ if propname == 'content': try: return self.db.getfile(self.classname, nodeid, None) - except: + except IOError, (strerror): # BUG: by catching this we donot see an error in the log. - return 'ERROR reading file: %s%s\n%s'%( - self.classname, nodeid, poss_msg) + return 'ERROR reading file: %s%s\n%s\n%s'%( + self.classname, nodeid, poss_msg, strerror) if default is not _marker: return Class.get(self, nodeid, propname, default, cache=cache) else:
