We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cc57bb commit b1d0d45Copy full SHA for b1d0d45
lambda_uploader/subscribers.py
@@ -12,7 +12,6 @@
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14
15
-import time
16
import boto3
17
import botocore
18
import logging
@@ -43,10 +42,7 @@ def subscribe(self):
43
42
LOG.debug('Subscription created')
44
except botocore.exceptions.ClientError as ex:
45
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':
+ if response_code == 'ResourceConflictException':
50
LOG.debug('Subscription exists')
51
else:
52
LOG.error('Subscription failed, error=%s' % str(ex))
0 commit comments