From: stefan Date: Fri, 9 Oct 2009 13:06:43 +0000 (+0000) Subject: Robustify web interface. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;ds=sidebyside;h=b00326a8b3dab938acb724af1e57fb27cc6c55b6;p=roundup.git Robustify web interface. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4367 57a73879-2fb5-44c3-a270-3262357dd7e2 --- 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()