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()
|
sys.exit()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
#catch all other exceptions
|
#catch all other exceptions
|
||||||
logger.warning( 'Main __init__ thread exception: %s', e.message )
|
logger.warning( 'Main __init__ thread exception: %s', repr(e) )
|
||||||
except:
|
except:
|
||||||
logger.warning( 'Main __init__ unknown thread exception')
|
logger.warning( 'Main __init__ unknown thread exception')
|
||||||
|
|
||||||
|
@ -83,13 +83,13 @@ class ClientServeHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
|||||||
|
|
||||||
|
|
||||||
class ClientServe():
|
class ClientServe():
|
||||||
def __init__(self, port, build_index_callback):
|
def __init__(self, port):
|
||||||
server = HTTPServer( ('', port), ClientServeHandler)
|
server = HTTPServer( ('', port), ClientServeHandler)
|
||||||
server.serve_forever()
|
server.serve_forever()
|
||||||
|
|
||||||
|
|
||||||
def main( build_index_callback ):
|
def main():
|
||||||
clientServe = ClientServe(80, build_index_callback)
|
clientServe = ClientServe(80)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user