<type 'exceptions.UnboundLocalError'>
Python 2.7.18: /usr/lib/python-exec/python2.7/python
Fri Oct 23 04:08:59 2020

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /usr/lib64/python2.7/site-packages/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object>)
    556         """Runs the handler, flushes the streams, and ends the request."""
    557         try:
=>  558             protocolStatus, appStatus = self.server.handler(self)
    559         except:
    560             traceback.print_exc(file=self.stderr)
protocolStatus undefined, appStatus undefined, self = <flup.server.fcgi_base.Request object>, self.server = <flup.server.fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <flup.server.fcgi.WSGIServer object>>
 /usr/lib64/python2.7/site-packages/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object>, req=<flup.server.fcgi_base.Request object>)
   1118                 result = self.application(environ, start_response)
   1119                 try:
=> 1120                     for data in result:
   1121                         if data:
   1122                             write(data)
data undefined, result = <generator object run_wsgi>
 /usr/lib64/python2.7/site-packages/mercurial/hgweb/hgwebdir_mod.py in run_wsgi(self=<mercurial.hgweb.hgwebdir_mod.hgwebdir object>, req=parsedrequest(method='GET', url='http://hg.hoffi...NT_TYPE': '', 'HTTP_ACCEPT_ENCODING': 'br,gzip'}), res=<mercurial.hgweb.request.wsgiresponse object>)
 /usr/lib64/python2.7/site-packages/mercurial/hgweb/hgwebdir_mod.py in _runwsgi(self=<mercurial.hgweb.hgwebdir_mod.hgwebdir object>, req=parsedrequest(method='GET', url='http://hg.hoffi...NT_TYPE': '', 'HTTP_ACCEPT_ENCODING': 'br,gzip'}), res=<mercurial.hgweb.request.wsgiresponse object>)

<type 'exceptions.UnboundLocalError'>: local variable 'tmpl' referenced before assignment
      args = ("local variable 'tmpl' referenced before assignment",)
      message = "local variable 'tmpl' referenced before assignment"