summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1ad34e6)
raw | patch | inline | side by side (parent: 1ad34e6)
author | grubert <grubert@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 25 Feb 2002 14:23:00 +0000 (14:23 +0000) | ||
committer | grubert <grubert@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 25 Feb 2002 14:23:00 +0000 (14:23 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@656 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/roundupdb.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index af4064ee9debd3a694c6b1844c8021dc53bfa2a0..8b1f0c8bb6c719c23831d5008e9967d432c370e8 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
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
diff --git a/roundup/roundupdb.py b/roundup/roundupdb.py
index 9a95f4ef82a0e3027798b27a17a651b80fbaa3bb..3821421a5d0fa32194bfe3247164d392d3e04580 100644 (file)
--- a/roundup/roundupdb.py
+++ b/roundup/roundupdb.py
# 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.
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: