~abentley/bundlebuggy/trunk

« back to all changes in this revision

Viewing changes to bundlebuggy/controllers.py

  • Committer: Aaron Bentley
  • Date: 2008-09-23 14:22:26 UTC
  • Revision ID: aaron.bentley@utoronto.ca-20080923142226-c8lha1gooyio3b9u
Fix traceback on bad request URLs

Show diffs side-by-side

added added

removed removed

Lines of Context:
191
191
    @expose(template='bundlebuggy.templates.request')
192
192
    def view(self, request_id, project_id=None, action=None):
193
193
        request = MergeRequest.get(request_id)
 
194
        if request is None:
 
195
            raise cherrypy.NotFound
194
196
        project_id = request.project_id
195
 
        if request is None:
196
 
            raise cherrypy.NotFound
197
197
        slushpile = Config().open_slushpile()
198
198
        slushpile.lock_read()
199
199
        try: