From 81aff42e032f1ef0e0c5de0d0f58256b8df9e9be Mon Sep 17 00:00:00 2001 From: kevgliss Date: Fri, 7 Apr 2017 16:01:40 -0700 Subject: [PATCH] Removing this exception handling, that error should be caught above. (#749) --- lemur/plugins/lemur_aws/iam.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/lemur/plugins/lemur_aws/iam.py b/lemur/plugins/lemur_aws/iam.py index 9a4408ff..680e64c0 100644 --- a/lemur/plugins/lemur_aws/iam.py +++ b/lemur/plugins/lemur_aws/iam.py @@ -24,9 +24,6 @@ def retry_throttled(exception): if exception.response['Error']['Code'] == 'NoSuchEntity': return False - if isinstance(exception, botocore.errorfactory.NoSuchEntityException): - return False - metrics.send('iam_retry', 'counter', 1) return True