Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 1213:3a5e05edcd87
added doc for METAL
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 25 Sep 2002 06:20:09 +0000 |
| parents | b862bbf2067a |
| children | 8dd4f736370b |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Wed Sep 25 05:27:29 2002 +0000 +++ b/roundup/cgi/templating.py Wed Sep 25 06:20:09 2002 +0000 @@ -206,7 +206,11 @@ if num_re.match(entry): l.append(entry) else: - l.append(cl.lookup(entry)) + try: + l.append(cl.lookup(entry)) + except KeyError: + # ignore invalid keys + pass return l class HTMLPermissions:
