Skip to content

Commit

Permalink
Merge pull request #472 from airbnb/javier-streamalert-onelogin-check…
Browse files Browse the repository at this point in the history
…-response

[apps][onelogin][bug] Making sure response is valid before accessing it
  • Loading branch information
javuto authored Nov 13, 2017
2 parents dd1f870 + 2ad731c commit b1966aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app_integrations/apps/onelogin.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def _get_onelogin_events(self):

if not result:
# If we hit the rate limit, update the sleep time
if response.get('status'):
if response and response.get('status'):
r_status = response.get('status')
if r_status['code'] == 400 and r_status['message'] == 'rate_limit_exceeded':
self._set_rate_limit_sleep()
Expand Down

0 comments on commit b1966aa

Please sign in to comment.