From 9bc072c3c9ad223ae4bf0998866c0438b96b9f48 Mon Sep 17 00:00:00 2001 From: sidya82 Date: Sun, 2 Mar 2014 23:52:53 +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 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/superTornado.py b/superTornado.py index 252c13e..9619e4f 100644 --- a/superTornado.py +++ b/superTornado.py @@ -160,16 +160,17 @@ if __name__ == "__main__": portCamera = config.portCamera() portServ = config.portServ() if blind == "error" : - raise BlindConfigurationERROR(bcolors.FAIL +"Failed Load Blind Configuration") + raise BlindConfigurationERROR("Failed Load Blind Configuration") if ipCamera == "error" : - raise IPCameraConfigurationERROR(bcolors.FAIL +"Failed Load IP Camera Configuration") + raise IPCameraConfigurationERROR("Failed Load IP Camera Configuration") if portCamera == "error" : - raise PortCameraConfigurationERROR(bcolors.FAIL + "Failed Load IP Camera Configuration") + raise PortCameraConfigurationERROR("Failed Load IP Camera Configuration") if portServ == "error" : - raise PortServConfigurationERROR(bcolors.FAIL + "Failed Load Port Server Configuration") + raise PortServConfigurationERROR("Failed Load Port Server Configuration") except Exception, e : + print bcolors.FAIL + print e print "Configuration Loading Failed ! Check Configuration File !" + bcolors.ENDC - print bcolors.FAIL + e + bcolors.ENDC sys.exit(1) print "->Configuration Server Load Successfully :" if blind == True: