We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e38937 commit 6fb090cCopy full SHA for 6fb090c
CHANGES.txt
@@ -8,6 +8,7 @@ Fixed:
8
- made errors from bad input in the quick "Show issue:" form more
9
user-friendly (sf bug 904064)
10
- don't add a query to a user's list if it's already there
11
+- nicer invalid property error in HTML templating
12
13
14
2004-02-25 0.6.6
roundup/cgi/templating.py
@@ -310,7 +310,10 @@ def __getitem__(self, item):
310
return None
311
312
# get the property
313
- prop = self._props[item]
+ try:
314
+ prop = self._props[item]
315
+ except KeyError:
316
+ raise KeyError, 'No such property "%s" on %s'%(item, self.classname)
317
318
# look up the correct HTMLProperty class
319
form = self._client.form
0 commit comments