X-Git-Url: https://git.tokkee.org/?p=roundup.git;a=blobdiff_plain;f=roundup%2Fcgi%2Fclient.py;fp=roundup%2Fcgi%2Fclient.py;h=b4147d47923e46fb047baa225def472f13846fad;hp=ff4573abe175543943ffd07b6c4cf3ce6c6f8ffd;hb=1d785e9024cc06c4c4a098e767a2d24afb2a235d;hpb=8669be096a8a950fe0d23d7b88a8e6b6c37b2b41 diff --git a/roundup/cgi/client.py b/roundup/cgi/client.py index ff4573a..b4147d4 100644 --- a/roundup/cgi/client.py +++ b/roundup/cgi/client.py @@ -920,7 +920,10 @@ class Client: raise Unauthorised(self._("You are not allowed to view " "this file.")) - mime_type = klass.get(nodeid, 'type') + try: + mime_type = klass.get(nodeid, 'type') + except IndexError, e: + raise NotFound(e) # Can happen for msg class: if not mime_type: mime_type = 'text/plain'