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: