<type 'exceptions.TypeError'>
Python 2.7.12: /usr/bin/python
Mon Jun 17 07:25:44 2019

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/lib/python2.7/dist-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/lib/python2.7/dist-packages/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object>, req=<flup.server.fcgi_base.Request object>)
   1116         try:
   1117             try:
=> 1118                 result = self.application(environ, start_response)
   1119                 try:
   1120                     for data in result:
result = None, self = <flup.server.fcgi.WSGIServer object>, self.application = <werkzeug.wsgi.SharedDataMiddleware object>, environ = {'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/usr/share/moin/server/moin.fcgi/', 'CONTEXT_PREFIX': '/', 'DOCUMENT_ROOT': '/webspace/wiki.libsdl.org', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'wiki.libsdl.org', ...}, start_response = <function start_response>
 /usr/lib/python2.7/dist-packages/werkzeug/wsgi.py in __call__(self=<werkzeug.wsgi.SharedDataMiddleware object>, environ={'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/usr/share/moin/server/moin.fcgi/', 'CONTEXT_PREFIX': '/', 'DOCUMENT_ROOT': '/webspace/wiki.libsdl.org', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'wiki.libsdl.org', ...}, start_response=<function start_response>)
    589                     break
    590         if file_loader is None or not self.is_allowed(real_filename):
=>  591             return self.app(environ, start_response)
    592 
    593         guessed_type = mimetypes.guess_type(real_filename)
self = <werkzeug.wsgi.SharedDataMiddleware object>, self.app = <MoinMoin.wsgiapp.Application object>, environ = {'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/usr/share/moin/server/moin.fcgi/', 'CONTEXT_PREFIX': '/', 'DOCUMENT_ROOT': '/webspace/wiki.libsdl.org', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'wiki.libsdl.org', ...}, start_response = <function start_response>
 /usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py in __call__(self=<MoinMoin.wsgiapp.Application object>, environ={'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/usr/share/moin/server/moin.fcgi/', 'CONTEXT_PREFIX': '/', 'DOCUMENT_ROOT': '/webspace/wiki.libsdl.org', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'wiki.libsdl.org', ...}, start_response=<function start_response>)
    262             context = init(request)
    263             try:
=>  264                 response = run(context)
    265             finally:
    266                 context.clock.stop('total')
response undefined, global run = <function run>, context = <AllContext ['AllContext']>
 /usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py in run(context=<AllContext ['AllContext']>)
     87                 response = xmlrpc.xmlrpc2(XMLRPCContext(request))
     88             else:
=>   89                 response = dispatch(request, context, action_name)
     90             context.cfg.session_service.finalize(context, context.session)
     91             return response
response undefined, global dispatch = <function dispatch>, request = <AppRequest 0 bytes [200 OK]>, context = <AllContext ['AllContext']>, action_name = u'twikidraw'
 /usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py in dispatch(request=<AppRequest 0 bytes [200 OK]>, context=<AllContext ['AllContext']>, action_name=u'twikidraw')
    135     # 2. handle action
    136     else:
=>  137         response = handle_action(context, pagename, action_name)
    138     if isinstance(response, Context):
    139         response = response.request
response undefined, global handle_action = <function handle_action>, context = <AllContext ['AllContext']>, pagename = u'HelpOnMoinWikiSyntax', action_name = u'twikidraw'
 /usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py in handle_action(context=<AllContext ['AllContext']>, pagename=u'HelpOnMoinWikiSyntax', action_name=u'twikidraw')
    201             context.page.send_page()
    202         else:
=>  203             handler(context.page.page_name, context)
    204 
    205     return context
handler = <function execute>, context = <AllContext ['AllContext']>, context.page = <MoinMoin.Page.Page object>, context.page.page_name = u'HelpOnMoinWikiSyntax'
 /usr/lib/python2.7/dist-packages/MoinMoin/action/twikidraw.py in execute(pagename=u'HelpOnMoinWikiSyntax', request=<AllContext ['AllContext']>)
    209 def execute(pagename, request):
    210     target = request.values.get('target')
=>  211     target = wikiutil.taintfilename(target)
    212 
    213     twd = TwikiDraw(request, pagename, target)
target = None, global wikiutil = <module 'MoinMoin.wikiutil' from '/usr/lib/python2.7/dist-packages/MoinMoin/wikiutil.pyc'>, wikiutil.taintfilename = <function taintfilename>
 /usr/lib/python2.7/dist-packages/MoinMoin/wikiutil.py in taintfilename(basename=None)
   2270     # note: filenames containing ../ (or ..\) are made safe by replacing
   2271     # the / (or the \). the .. will be kept, but is harmless then.
=> 2272     basename = re.sub('[\x00-\x1f:/\\\\<>"*?%|]', '_', basename)
   2273     return basename
   2274 
basename = None, global re = <module 're' from '/usr/lib/python2.7/re.pyc'>, re.sub = <function sub>
 /usr/lib/python2.7/re.py in sub(pattern='[\x00-\x1f:/\\\\<>"*?%|]', repl='_', string=None, count=0, flags=0)
    153     a callable, it's passed the match object and must return
    154     a replacement string to be used."""
=>  155     return _compile(pattern, flags).sub(repl, string, count)
    156 
    157 def subn(pattern, repl, string, count=0, flags=0):
global _compile = <function _compile>, pattern = '[\x00-\x1f:/\\\\<>"*?%|]', flags = 0, ).sub undefined, repl = '_', string = None, count = 0

<type 'exceptions.TypeError'>: expected string or buffer
      args = ('expected string or buffer',)
      message = 'expected string or buffer'