From 11001ed62ce0f7ede28514f5a6efb609460fc9f6 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 4 Aug 2020 13:17:48 +0300 Subject: [PATCH] Chunk serializer: fix bad error invocation. --- django_etebase/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_etebase/serializers.py b/django_etebase/serializers.py index c8e93cb..0e44228 100644 --- a/django_etebase/serializers.py +++ b/django_etebase/serializers.py @@ -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]))