Try removing boto package again

This commit is contained in:
Ben Thorner
2021-10-29 10:51:22 +01:00
parent efe4c6f06e
commit 29c92a9e54
4 changed files with 4 additions and 6 deletions

View File

@@ -3,7 +3,7 @@ import functools
import uuid
from datetime import datetime
from boto.exception import SQSError
import botocore
from flask import abort, current_app, jsonify, request
from gds_metrics import Histogram
from notifications_utils.recipients import try_validate_and_format_phone_number
@@ -232,7 +232,7 @@ def process_sms_or_email_notification(
reply_to_text=reply_to_text
)
return resp
except SQSError:
except botocore.exceptions.ClientError:
# if SQS cannot put the task on the queue, it's probably because the notification body was too long and it
# went over SQS's 256kb message limit. If so, we
current_app.logger.info(