From b00326a8b3dab938acb724af1e57fb27cc6c55b6 Mon Sep 17 00:00:00 2001 From: stefan Date: Fri, 9 Oct 2009 13:06:43 +0000 Subject: [PATCH] Robustify web interface. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4367 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/cgi/client.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/roundup/cgi/client.py b/roundup/cgi/client.py index 0407abd..13db91c 100644 --- a/roundup/cgi/client.py +++ b/roundup/cgi/client.py @@ -838,7 +838,12 @@ class Client: raise NotFound, str(designator) classname, nodeid = m.group(1), m.group(2) - klass = self.db.getclass(classname) + try: + klass = self.db.getclass(classname) + except KeyError: + # The classname was not valid. + raise NotFound, str(designator) + # make sure we have the appropriate properties props = klass.getprops() -- 2.30.2