diff --git a/repair/apps/asmfa/serializers/bulkcreate.py b/repair/apps/asmfa/serializers/bulkcreate.py index 97eb31005..eae2a471d 100644 --- a/repair/apps/asmfa/serializers/bulkcreate.py +++ b/repair/apps/asmfa/serializers/bulkcreate.py @@ -141,6 +141,7 @@ def validate(self, attrs): file_type=self.input_file_ext.replace('.', ''), encoding=self.encoding ) + error_mask.add_message(message) raise ValidationError( error_mask.messages, url ) diff --git a/repair/apps/utils/serializers.py b/repair/apps/utils/serializers.py index 1d7e3ee0a..3d229d00a 100644 --- a/repair/apps/utils/serializers.py +++ b/repair/apps/utils/serializers.py @@ -33,7 +33,7 @@ class MakeValid(GeoFunc): class BulkValidationError(Exception): - def __init__(self, message, path=''): + def __init__(self, message='error', path=''): super().__init__(message) self.message = message self.path = path