Skip to content

Commit

Permalink
Clean up flake8 and add logging for PR #52
Browse files Browse the repository at this point in the history
  • Loading branch information
jantman committed Aug 12, 2015
1 parent 9493202 commit 5e4a034
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions awslimitchecker/services/elasticache.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ def _find_usage_parameter_groups(self):

def _find_usage_security_groups(self):
"""find usage for elasticache security groups"""

try:
# If EC2-Classic isn't available (e.g., a new account)
# this method will fail with:
Expand All @@ -134,9 +133,11 @@ def _find_usage_security_groups(self):
'DescribeCacheSecurityGroupsResponse'][
'DescribeCacheSecurityGroupsResult'][
'CacheSecurityGroups']
except BotoServerError, e:
except BotoServerError:
logger.debug("caught BotoServerError checking ElastiCache security "
"groups (account without EC2-Classic?)")
groups = []

self.limits['Security Groups']._add_current_usage(
len(groups),
aws_type='WS::ElastiCache::SecurityGroup'
Expand Down

0 comments on commit 5e4a034

Please sign in to comment.