From dd1efef7be3a886a7635f8b218f6f05446926d23 Mon Sep 17 00:00:00 2001 From: sidya82 Date: Sun, 2 Mar 2014 23:31:30 +0100 Subject: [PATCH] =?UTF-8?q?=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20supe?= =?UTF-8?q?rTornado.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- superTornado.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/superTornado.py b/superTornado.py index c28ccf4..2226c8c 100644 --- a/superTornado.py +++ b/superTornado.py @@ -175,9 +175,14 @@ if __name__ == "__main__": print " ->Not blind unhabitant" print " ->Ip camera : " + camera print " ->Port Server : " + port - tornado.options.parse_command_line() - http_server = tornado.httpserver.HTTPServer(application) - http_server.listen(80) - tornado.ioloop.IOLoop.instance().start() + try : + print("->Server Start ...") + http_server = tornado.httpserver.HTTPServer(application) + http_server.listen(port) + tornado.ioloop.IOLoop.instance().start() + except Exception, e : + print "Server Start Failed !" + print e + sys.exit(1)