Traceback (most recent call last):


 "/usr/lib/python2.7/SocketServer.py", line 596, in process_request_thread

self.finish_request(request, client_address)


 "/usr/lib/python2.7/SocketServer.py", line 331, in finish_request

self.RequestHandlerClass(request, client_address, self)


 "/home/pi/python-websocket-server-master/websocket_server/websocket_server.py", line 167, in __init__

StreamRequestHandler.__init__(self, socket, addr, server)


 "/usr/lib/python2.7/SocketServer.py", line 654, in __init__

self.finish()


 "/home/pi/python-websocket-server-master/websocket_server/websocket_server.py", line 328, in finish

self.server._client_left_(self)


 "/home/pi/python-websocket-server-master/websocket_server/websocket_server.py", line 146, in _client_left_

self.client_left(client, self)


 "server.py", line 11, in client_left

print("Client(%d) disconnected" % client['id'])
TypeError: 'NoneType' object has no attribute '__getitem__'

Traceback (most recent call last):


 "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main

"__main__", mod_spec)


 "/usr/lib64/python3.6/runpy.py", line 85, in _run_code

exec(code, run_globals)


 "/usr/lib64/python3.6/doctest.py", line 2787, in <module>

sys.exit(_test())


 "/usr/lib64/python3.6/doctest.py", line 2777, in _test

failures, _ = testmod(m, verbose=verbose, optionflags=options)


 "/usr/lib64/python3.6/doctest.py", line 1950, in testmod

for test in finder.find(m, name, globs=globs, extraglobs=extraglobs):


 "/usr/lib64/python3.6/doctest.py", line 933, in find

self._find(tests, obj, name, module, source_lines, globs, {})


 "/usr/lib64/python3.6/doctest.py", line 992, in _find

if ((inspect.isroutine(inspect.unwrap(val))


 "/usr/lib64/python3.6/inspect.py", line 512, in unwrap

while _is_wrapper(func):


 "/usr/lib64/python3.6/inspect.py", line 503, in _is_wrapper

return hasattr(f, '__wrapped__')


 "/home/tdescham/repo/contrib/kallithea/venv/kallithea-review/lib/python3.6/site-packages/tg/support/objectproxy.py", line 19, in __getattr__

return getattr(self._current_obj(), attr)


 "/home/tdescham/repo/contrib/kallithea/venv/kallithea-review/lib/python3.6/site-packages/tg/request_local.py", line 240, in _current_obj

return getattr(context, self.name)


 "/home/tdescham/repo/contrib/kallithea/venv/kallithea-review/lib/python3.6/site-packages/tg/support/objectproxy.py", line 19, in __getattr__

return getattr(self._current_obj(), attr)


 "/home/tdescham/repo/contrib/kallithea/venv/kallithea-review/lib/python3.6/site-packages/tg/support/registry.py", line 72, in _current_obj

'thread' % self.____name__)
TypeError: No object (name: context) has been registered for this thread
