Mercurial > p > roundup > code
diff roundup/hyperdb.py @ 172:c580555a6508
mailgw was assuming certain properties existed on the issues being created.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 01 Aug 2001 04:24:21 +0000 |
| parents | 9c5ddad06430 |
| children | 1536be43d2fa |
line wrap: on
line diff
--- a/roundup/hyperdb.py Wed Aug 01 03:52:23 2001 +0000 +++ b/roundup/hyperdb.py Wed Aug 01 04:24:21 2001 +0000 @@ -1,4 +1,4 @@ -# $Id: hyperdb.py,v 1.10 2001-07-30 02:38:31 richard Exp $ +# $iD: HYperdb.py,v 1.10 2001/07/30 02:38:31 richard Exp $ # standard python modules import cPickle, re, string @@ -119,7 +119,12 @@ else: raise ValueError, 'node with key "%s" exists'%value - prop = self.properties[key] + # try to handle this property + try: + prop = self.properties[key] + except KeyError: + raise KeyError, '"%s" has no property "%s"'%(self.classname, + key) if prop.isLinkType: if type(value) != type(''): @@ -793,6 +798,9 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.10 2001/07/30 02:38:31 richard +# get() now has a default arg - for migration only. +# # Revision 1.9 2001/07/29 09:28:23 richard # Fixed sorting by clicking on column headings. #
