~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/apps/branch.py

  • Committer: Michael Hudson
  • Date: 2008-10-01 20:02:14 UTC
  • mfrom: (227.1.1 loggerhead.python2.4)
  • Revision ID: michael.hudson@canonical.com-20081001200214-15go6vse1cklf345
restore python2.4 compatibility (Marius Kruger)

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
            raise httpexceptions.HTTPNotFound()
110
110
        self.branch.lock_read()
111
111
        try:
112
 
            c = cls(self, self.get_history())
113
 
            return c(environ, start_response)
114
 
        except:
115
 
            environ['exc_info'] = sys.exc_info()
116
 
            environ['branch'] = self
117
 
            raise
 
112
            try:
 
113
                c = cls(self, self.get_history())
 
114
                return c(environ, start_response)
 
115
            except:
 
116
                environ['exc_info'] = sys.exc_info()
 
117
                environ['branch'] = self
 
118
                raise
118
119
        finally:
119
120
            self.branch.unlock()
 
121