Skip to content

Commit

Permalink
Merge pull request #1 from kevgliss/retrying
Browse files Browse the repository at this point in the history
Fixing the throttling exception.
  • Loading branch information
kevgliss authored May 1, 2018
2 parents 681d5ed + b07a7cb commit 07bd980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diffy/plugins/diffy_aws/auto_scaling.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def retry_throttled(exception):
"""
logger.debug(exception)
if isinstance(exception, ClientError):
if exception.response['Error']['Code'] != 'InvocationDoesNotExist':
if exception.response['Error']['Code'] == 'ThrottlingException':
return True
return False

Expand Down

0 comments on commit 07bd980

Please sign in to comment.