Show More
@@ -203,6 +203,11 b' class HTTPApplication(object):' | |||
|
203 | 203 | |
|
204 | 204 | self.config.add_view(self.hg_stream(), route_name='stream_hg') |
|
205 | 205 | self.config.add_view(self.git_stream(), route_name='stream_git') |
|
206 | ||
|
207 | def notfound(request): | |
|
208 | return {'status': '404 NOT FOUND'} | |
|
209 | self.config.add_notfound_view(notfound, renderer='json') | |
|
210 | ||
|
206 | 211 | self.config.add_view( |
|
207 | 212 | self.handle_vcs_exception, context=Exception, |
|
208 | 213 | custom_predicates=[self.is_vcs_exception]) |
General Comments 0
You need to be logged in to leave comments.
Login now