#NEWLINE# def checkError( url , version ) : #NEWLINE# #INDENT# " There isn't any versioning information listed on the web/server admin\n    pages, so instead we trigger an error and read the debugging info.  This is on\n    by default for all versions of Railo.\n    " #NEWLINE# try : #NEWLINE# #INDENT# url += '.cfm' #NEWLINE# response = utility . requests_get ( url ) #NEWLINE# if ( response . status_code == 404 ) : #NEWLINE# #INDENT# data = findall ( '">Railo \\d.\\d' , response . content ) #NEWLINE# if ( ( len ( data ) > 0 ) and ( version in data [ 0 ] ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# except exceptions . Timeout : #NEWLINE# #INDENT# utility . Msg ( '{0} timeout to {1}:{2}' . format ( self . platform , ip , rport ) , LOG . DEBUG ) #NEWLINE# #UNINDENT# except exceptions . ConnectionError : #NEWLINE# #INDENT# utility . Msg ( '{0} connection error to {1}:{2}' . format ( self . platform , ip , rport ) , LOG . DEBUG ) #NEWLINE# #UNINDENT# return False