modifié: superTornado.py

This commit is contained in:
sidya82 2014-03-02 23:52:53 +01:00
parent f51621e271
commit 9bc072c3c9
1 changed files with 6 additions and 5 deletions

View File

@ -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: