Skip to content

Commit b1d0d45

Browse files
author
Jude
committed
Remove misleading retry log message
1 parent 4cc57bb commit b1d0d45

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lambda_uploader/subscribers.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import time
1615
import boto3
1716
import botocore
1817
import logging
@@ -43,10 +42,7 @@ def subscribe(self):
4342
LOG.debug('Subscription created')
4443
except botocore.exceptions.ClientError as ex:
4544
response_code = ex.response['Error']['Code']
46-
if response_code == 'InvalidParameterValueException':
47-
LOG.debug('Retrying subscription')
48-
time.sleep(3)
49-
elif response_code == 'ResourceConflictException':
45+
if response_code == 'ResourceConflictException':
5046
LOG.debug('Subscription exists')
5147
else:
5248
LOG.error('Subscription failed, error=%s' % str(ex))

0 commit comments

Comments
 (0)