error in clientserve main

This commit is contained in:
jngrt 2014-11-06 20:21:19 +01:00
parent e336ba209e
commit 0de4a6b878
2 changed files with 4 additions and 4 deletions

View File

@ -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')

View File

@ -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()