Merge pull request #2712 from alphagov/boto

use original `boto`
This commit is contained in:
David McDonald
2020-02-13 11:51:10 +00:00
committed by GitHub
3 changed files with 12 additions and 15 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ from datetime import (
timedelta, timedelta,
) )
from boto.exception import BotoClientError from botocore.exceptions import ClientError
from flask import current_app from flask import current_app
from notifications_utils.international_billing_rates import INTERNATIONAL_BILLING_RATES from notifications_utils.international_billing_rates import INTERNATIONAL_BILLING_RATES
from notifications_utils.recipients import ( from notifications_utils.recipients import (
@@ -438,7 +438,7 @@ def _delete_letters_from_s3(
for s3_object in s3_objects: for s3_object in s3_objects:
try: try:
remove_s3_object(bucket_name, s3_object['Key']) remove_s3_object(bucket_name, s3_object['Key'])
except BotoClientError: except ClientError:
current_app.logger.exception( current_app.logger.exception(
"Could not delete S3 object with filename: {}".format(s3_object['Key'])) "Could not delete S3 object with filename: {}".format(s3_object['Key']))
+1 -3
View File
@@ -2,7 +2,7 @@
# with package version changes made in requirements-app.txt # with package version changes made in requirements-app.txt
cffi==1.13.1 cffi==1.13.1
celery==3.1.26.post2 # pyup: <4 celery[sqs]==3.1.26.post2 # pyup: <4
docopt==0.6.2 docopt==0.6.2
Flask-Bcrypt==0.7.1 Flask-Bcrypt==0.7.1
flask-marshmallow==0.10.1 flask-marshmallow==0.10.1
@@ -30,5 +30,3 @@ awscli-cwlogs>=1.4,<1.5
itsdangerous==0.24 # pyup: <1.0.0 itsdangerous==0.24 # pyup: <1.0.0
git+https://github.com/alphagov/notifications-utils.git@36.5.0#egg=notifications-utils==36.5.0 git+https://github.com/alphagov/notifications-utils.git@36.5.0#egg=notifications-utils==36.5.0
git+https://github.com/alphagov/boto.git@2.43.0-patch3#egg=boto==2.43.0-patch3
+9 -10
View File
@@ -4,7 +4,7 @@
# with package version changes made in requirements-app.txt # with package version changes made in requirements-app.txt
cffi==1.13.1 cffi==1.13.1
celery==3.1.26.post2 # pyup: <4 celery[sqs]==3.1.26.post2 # pyup: <4
docopt==0.6.2 docopt==0.6.2
Flask-Bcrypt==0.7.1 Flask-Bcrypt==0.7.1
flask-marshmallow==0.10.1 flask-marshmallow==0.10.1
@@ -33,23 +33,22 @@ itsdangerous==0.24 # pyup: <1.0.0
git+https://github.com/alphagov/notifications-utils.git@36.5.0#egg=notifications-utils==36.5.0 git+https://github.com/alphagov/notifications-utils.git@36.5.0#egg=notifications-utils==36.5.0
git+https://github.com/alphagov/boto.git@2.43.0-patch3#egg=boto==2.43.0-patch3
## The following requirements were added by pip freeze: ## The following requirements were added by pip freeze:
alembic==1.3.3 alembic==1.4.0
amqp==1.4.9 amqp==1.4.9
anyjson==0.3.3 anyjson==0.3.3
attrs==19.3.0 attrs==19.3.0
awscli==1.17.9 awscli==1.17.15
bcrypt==3.1.7 bcrypt==3.1.7
billiard==3.3.0.23 billiard==3.3.0.23
bleach==3.1.0 bleach==3.1.0
boto==2.49.0
boto3==1.10.38 boto3==1.10.38
botocore==1.14.9 botocore==1.14.15
certifi==2019.11.28 certifi==2019.11.28
chardet==3.0.4 chardet==3.0.4
Click==7.0 Click==7.0
colorama==0.4.1 colorama==0.4.3
dnspython==1.16.0 dnspython==1.16.0
docutils==0.15.2 docutils==0.15.2
flask-redis==0.4.0 flask-redis==0.4.0
@@ -78,11 +77,11 @@ PyYAML==5.2
redis==3.4.1 redis==3.4.1
requests==2.22.0 requests==2.22.0
rsa==3.4.2 rsa==3.4.2
s3transfer==0.3.2 s3transfer==0.3.3
six==1.14.0 six==1.14.0
smartypants==2.0.1 smartypants==2.0.1
statsd==3.3.0 statsd==3.3.0
urllib3==1.25.8 urllib3==1.25.8
webencodings==0.5.1 webencodings==0.5.1
Werkzeug==0.16.1 Werkzeug==1.0.0
zipp==2.1.0 zipp==2.2.0