error in clientserve main
This commit is contained in:
parent
e336ba209e
commit
0de4a6b878
2
main.py
2
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')
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user