Replaced the JSONDecodeError with a ValueError as it was failing on Jenkins.
Replaced the JSONDecodeError with a ValueError as it was failing on
Jenkins.

alphagov/notifications-api,alphagov/notifications-api