Skip to content

Commit 1e27183

Browse files
author
Richard Jones
committed
oops
1 parent 8e4fa72 commit 1e27183

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

roundup/cgi/templating.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,8 @@ def history(self, direction='descending', dre=re.compile('\d+')):
522522
if isinstance(prop, HTMLProperty):
523523
current[prop_n] = prop.plain()
524524
# make link if hrefable
525-
if isinstance(self._props[prop_n], hyperdb.Link):
525+
if (self._props.has_key(prop_n) and
526+
isinstance(self._props[prop_n], hyperdb.Link)):
526527
classname = self._props[prop_n].classname
527528
if os.path.exists(os.path.join(self._db.config.TEMPLATES, classname + '.item')):
528529
current[prop_n] = '<a href="%s%s">%s</a>'%(classname,

0 commit comments

Comments
 (0)