Merge pull request #11 from Rafiot/master

Fix test mode
pull/12/head
Raphaël Vinot 2016-04-12 09:20:30 +02:00
commit 88d9f0d75a
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ if __name__ == '__main__':
application = tornado.web.Application(service)
log.info('MISP modules server started on TCP port {0}'.format(port))
application.listen(port)
if sys.argv[1] == '-t':
if len(sys.argv) == 2 and sys.argv[1] == '-t':
log.info('MISP modules started in test-mode, quitting immediately.')
sys.exit()
tornado.ioloop.IOLoop.instance().start()