From: richard Date: Mon, 16 Sep 2002 06:39:12 +0000 (+0000) Subject: raise not found earlier, where it makes more sense to the user X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ab01a4615e6a6020a412b2a76e07c2632f067dca;p=roundup.git raise not found earlier, where it makes more sense to the user git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1177 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/cgi/client.py b/roundup/cgi/client.py index 834a082..c7a2e79 100644 --- a/roundup/cgi/client.py +++ b/roundup/cgi/client.py @@ -1,4 +1,4 @@ -# $Id: client.py,v 1.35 2002-09-16 05:33:58 richard Exp $ +# $Id: client.py,v 1.36 2002-09-16 06:39:12 richard Exp $ __doc__ = """ WWW request handler (also used in the stand-alone server). @@ -297,6 +297,8 @@ class Client: if m: self.classname = m.group(1) self.nodeid = m.group(2) + if not self.db.getclass(self.classname).hasnode(self.nodeid): + raise NotFound, '%s/%s'%(self.classname, self.nodeid) # with a designator, we default to item view self.template = 'item' else: