From 0de4a6b8783c3cb4a22d0453007d359106e0e257 Mon Sep 17 00:00:00 2001 From: jngrt Date: Thu, 6 Nov 2014 20:21:19 +0100 Subject: [PATCH] error in clientserve main --- main.py | 2 +- meshenger_clientserve.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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()