File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,16 @@ def funAnalyze(self, strHost):
4040 # 503 - the service is not available (e.g. down for maintenance)
4141 # 529 - the service is overloaded
4242 intSleep += 1
43- log .funLog (2 , 'Request rate too high! Sleeping for %s seconds .' % str (intSleep ))
43+ log .funLog (2 , 'Request rate too high or service unavailable [%s] ! Sleeping for %s sec .' % ( str (objHResp . status_code ), str ( intSleep ) ))
4444 time .sleep (intSleep )
4545 elif objHResp .status_code == 200 :
4646 log .funLog (1 , 'New assessment started for %s: %s' % (strHost , json .loads (objHResp .content )['statusMessage' ]))
4747 return True
4848
49+ else :
50+ log .funLog (2 , 'New assessment failed for %s [%s]' % (strHost , str (objHResp .status_code )))
51+ return False
52+
4953 except Exception as e :
5054 log .funLog (2 , repr (e ), 'err' )
5155
You can’t perform that action at this time.
0 commit comments