diff --git a/main.py b/main.py index 2c41529..6499067 100755 --- a/main.py +++ b/main.py @@ -62,7 +62,7 @@ class Meshenger: sys.exit() except Exception as e: #catch all other exceptions - logger.warning( 'Main __init__ thread exception: %s', e.message ) + logger.warning( 'Main __init__ thread exception: %s', repr(e) ) except: logger.warning( 'Main __init__ unknown thread exception') diff --git a/meshenger_clientserve.py b/meshenger_clientserve.py index 94cc3bd..75839cd 100644 --- a/meshenger_clientserve.py +++ b/meshenger_clientserve.py @@ -83,13 +83,13 @@ class ClientServeHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): class ClientServe(): - def __init__(self, port, build_index_callback): + def __init__(self, port): server = HTTPServer( ('', port), ClientServeHandler) server.serve_forever() -def main( build_index_callback ): - clientServe = ClientServe(80, build_index_callback) +def main(): + clientServe = ClientServe(80) if __name__ == '__main__': main()