1
0
mirror of https://github.com/etesync/server synced 2024-12-27 09:48:24 +00:00

Chunk serializer: fix bad error invocation.

This commit is contained in:
Tom Hacohen 2020-08-04 13:17:48 +03:00
parent f6af96ace6
commit 11001ed62c

View File

@ -117,7 +117,7 @@ class ChunksField(serializers.RelatedField):
def to_internal_value(self, data):
if data[0] is None or data[1] is None:
raise EtebaseValidationError('null is not allowed')
raise EtebaseValidationError('no_null', 'null is not allowed')
return (data[0], b64decode_or_bytes(data[1]))