- Added logging to indicate that we created the notification and that we sent the notification to a delivery queue.

- Small updates as recommended by review comments.
This commit is contained in:
Rebecca Law
2017-01-18 09:56:26 +00:00
parent 41b49eb8e0
commit f66670c558
6 changed files with 28 additions and 21 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:
except ValueError or AttributeError:
abort(404)
notification = notifications_dao.get_notification_with_personalisation(
api_user.service_id, casted_id, key_type=None