diff --git a/claimstore/modules/claims/restful.py b/claimstore/modules/claims/restful.py index 3b893f9..e5e65dd 100644 --- a/claimstore/modules/claims/restful.py +++ b/claimstore/modules/claims/restful.py @@ -85,7 +85,7 @@ def validate_json(self, json_data): try: validate_json(json_data, self.json_schema) except Exception as e: - raise InvalidJSONData('JSON data is not valid', details=str(e)) + raise InvalidJSONData('JSON data is not valid', extra=str(e)) class Subscription(ClaimStoreResource): @@ -232,7 +232,7 @@ def post(self): except isodate.ISO8601Error as e: raise InvalidJSONData( 'Claim `created` datetime does not follow ISO 8601 Z', - details=str(e) + extra=str(e) ) claimant = Claimant.query.filter_by(name=json_data['claimant']).first()