Skip to content

Commit

Permalink
REST API
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtiomL authored Apr 25, 2017
1 parent 3b8841d commit 45907ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/reapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ def __init__(self):

def funInfo(self, boolConTune = False):
# Check availability of SSL Labs servers, adjust concurrency and cool-off period
if self.boolIM:
self.strAnStNew += '&ignoreMismatch=on'
try:
objHResp = json.loads(self.objHS.get(self.strAPIE + self.strInfo).content)
self.intCool = objHResp['newAssessmentCoolOff'] / 1000
Expand All @@ -62,8 +64,6 @@ def funAnalyze(self, strHost):
# Initiate a new assessment for a host
while True:
try:
if self.boolIM:
self.strAnStNew += '&ignoreMismatch=on'
objHResp = self.objHS.get(self.strAPIE + self.strAnalyze + strHost + self.strAnStNew)
if objHResp.status_code in [429, 503, 529]:
# 429 - client request rate too high or too many new assessments too fast
Expand Down

0 comments on commit 45907ad

Please sign in to comment.