Skip to content

Commit

Permalink
Fixes #223: Return an error if HA returns an error that is not referr…
Browse files Browse the repository at this point in the history
…ing to rate limit.
  • Loading branch information
3c7 committed Apr 13, 2018
1 parent 1c74ce8 commit 8b4c669
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions analyzers/HybridAnalysis/HybridAnalysis_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ def run(self):
if "error" in r.json().get('response'):
if "Exceeded maximum API requests per minute(5)" in r.json().get('response').get('error'):
time.sleep(60)
else:
self.error(r.json().get('response').get('error'))
else:
error = False

Expand Down

0 comments on commit 8b4c669

Please sign in to comment.