From f2a109eed8d6c03ecfa6b4b19f41ef6735efbc5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Tue, 12 Apr 2016 09:15:33 +0200 Subject: [PATCH] fix test mode --- bin/misp-modules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/misp-modules.py b/bin/misp-modules.py index 16452cb4..f50e2a1d 100755 --- a/bin/misp-modules.py +++ b/bin/misp-modules.py @@ -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()