--> --> -->
 
 
<type 'exceptions.ValueError'>
Python 2.7.6: /usr/bin/python
Mon Dec 11 15:01:00 2017

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

 /home/rlandley/landley.net/hg/hgwebdir.cgi in ()
     36 
     37 def make_web_app():
     38     return hgwebdir("hgweb.config")
     39 
=>   40 wsgicgi.launch(wsgiapplication(make_web_app))
wsgicgi = <module 'mercurial.hgweb.wsgicgi' from '/usr/lib...on2.7/dist-packages/mercurial/hgweb/wsgicgi.pyc'>, wsgicgi.launch = <function launch>, wsgiapplication = <function wsgiapplication>, make_web_app = <function make_web_app>
 /usr/lib/python2.7/dist-packages/mercurial/hgweb/wsgicgi.py in launch(application=<function run_wsgi>)
     76     content = application(environ, start_response)
     77     try:
=>   78         for chunk in content:
     79             write(chunk)
     80         if not headers_sent:
chunk undefined, content = <generator object increasingchunks>
 /usr/lib/python2.7/dist-packages/mercurial/util.py in increasingchunks(source=<generator object _flatten>, min=1024, max=65536)
    361     buf = []
    362     blen = 0
=>  363     for chunk in source:
    364         buf.append(chunk)
    365         blen += len(chunk)
chunk = ' bookmark history</summary>\n <author><name>Mercurial SCM</name></author>\n ', source = <generator object _flatten>
 /usr/lib/python2.7/dist-packages/mercurial/templater.py in _flatten(thing=<generator object runtemplate>)
    394                     yield str(i)
    395             elif i is not None:
=>  396                 for j in _flatten(i):
    397                     yield j
    398 
j = '"?>\n<feed xmlns="http://www.w3.org/2005/Atom">', global _flatten = <function _flatten>, i = <generator object runmap>
 /usr/lib/python2.7/dist-packages/mercurial/templater.py in _flatten(thing=<generator object runmap>)
    387             yield str(thing)
    388     else:
=>  389         for i in thing:
    390             if isinstance(i, str):
    391                 yield i
i undefined, thing = <generator object runmap>
 /usr/lib/python2.7/dist-packages/mercurial/templater.py in runmap(context=<mercurial.templater.engine object>, mapping={'entries': <function <lambda>>, 'header': ['<?xml version="1.0" encoding="', 'ascii', '"?>\n<feed xmlns="http://www.w3.org/2005/Atom">'], 'latestentry': <function <lambda>>, 'node': '7bf68329eb3b77ae9ee5917b2b1a9343bea91c30'}, data='latestentry')
    188     lm = mapping.copy()
    189 
=>  190     for i in d:
    191         if isinstance(i, dict):
    192             lm.update(i)
i undefined, d = <generator object entries>
 /usr/lib/python2.7/dist-packages/mercurial/hgweb/webcommands.py in entries(latestonly=True, **map={'entries': <function <lambda>>, 'header': ['<?xml version="1.0" encoding="', 'ascii', '"?>\n<feed xmlns="http://www.w3.org/2005/Atom">'], 'latestentry': <function <lambda>>, 'node': '7bf68329eb3b77ae9ee5917b2b1a9343bea91c30'})
    520     def entries(latestonly, **map):
    521         if latestonly:
=>  522             t = [min(i)]
    523         else:
    524             t = sorted(i)
t undefined, builtin min = <built-in function min>, i = []

<type 'exceptions.ValueError'>: min() arg is an empty sequence
      args = ('min() arg is an empty sequence',)
      message = 'min() arg is an empty sequence'