Mercurial > p > roundup > code
changeset 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 | c59bad997042 |
| children | e6d1c6d66de3 |
| files | CHANGES.txt roundup/roundupdb.py |
| diffstat | 2 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGES.txt Mon Feb 25 04:32:21 2002 +0000 +++ b/CHANGES.txt Mon Feb 25 14:23:00 2002 +0000 @@ -3,6 +3,7 @@ 2002-02-?? - 0.4.1 Feature: + . roundup db catch only IOError in getfile. . roundup db catches retrieving not existing files. . #503204 ] mailgw needs a default class - partially done - the setting of additional properties can wait for a
--- 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:
