Skip to content

Commit

Permalink
fixed bug with kinesis throttling exception
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbcullen committed Aug 28, 2017
1 parent cd55c21 commit 544596a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name='aws-tagger',
version='0.5.1',
version='0.5.2',
packages=find_packages(),
include_package_data=True,
install_requires=[
Expand All @@ -28,7 +28,7 @@
author="Patrick Cullen and the WaPo platform tools team",
author_email="[email protected]",
url="https://github.com/washingtonpost/aws-tagger",
download_url = "https://github.com/washingtonpost/aws-tagger/tarball/v0.5.1",
download_url = "https://github.com/washingtonpost/aws-tagger/tarball/v0.5.2",
keywords = ['tag', 'tagger', 'tagging', 'aws'],
classifiers = []
)
2 changes: 1 addition & 1 deletion tagger/tagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

def _is_retryable_exception(exception):
return not isinstance(exception, botocore.exceptions.ClientError) or \
(exception.response["Error"]["Code"] in ['RequestLimitExceeded', 'Throttling'])
(exception.response["Error"]["Code"] in ['LimitExceededException', 'RequestLimitExceeded', 'Throttling'])

def _arn_to_name(resource_arn):
# Example: arn:aws:elasticloadbalancing:us-east-1:397853141546:loadbalancer/pb-adn-arc2
Expand Down

0 comments on commit 544596a

Please sign in to comment.