modifié: superTornado.py
This commit is contained in:
parent
4397ac8322
commit
1f746ecc2b
@ -154,7 +154,7 @@ application = tornado.web.Application([
|
|||||||
cookie_secret="1213215656")
|
cookie_secret="1213215656")
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
print "->Loading configuration ... "
|
print bcolors.HEADER + "HEADER->Loading configuration ... " + bcolors.ENDC
|
||||||
try :
|
try :
|
||||||
blind = config.isBlind()
|
blind = config.isBlind()
|
||||||
ipCamera = config.ipCamera()
|
ipCamera = config.ipCamera()
|
||||||
@ -169,8 +169,7 @@ if __name__ == "__main__":
|
|||||||
if portServ == "error" :
|
if portServ == "error" :
|
||||||
raise ConfigError("Failed Load Port Server Configuration")
|
raise ConfigError("Failed Load Port Server Configuration")
|
||||||
except ConfigError as e :
|
except ConfigError as e :
|
||||||
print bcolors.FAIL
|
print bcolors.FAIL + e.value
|
||||||
print e.value
|
|
||||||
print "Configuration Loading Failed ! Check Configuration File !" + bcolors.ENDC
|
print "Configuration Loading Failed ! Check Configuration File !" + bcolors.ENDC
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
print "->Configuration Server Load Successfully :"
|
print "->Configuration Server Load Successfully :"
|
||||||
|
Reference in New Issue
Block a user