Add s3 method to remove transformed dvla files

This commit is contained in:
Imdad Ahad
2017-06-07 16:31:14 +01:00
parent 74a8905be9
commit 1d30d93c6f
3 changed files with 26 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ from app.v2.notifications.notification_schemas import get_notifications_request
def get_notification_by_id(id):
try:
casted_id = uuid.UUID(id)
except ValueError or AttributeError:
except (ValueError, AttributeError):
abort(404)
notification = notifications_dao.get_notification_with_personalisation(
authenticated_service.id, casted_id, key_type=None