From 9ce373aa56f35706998327b92b2828b458669d52 Mon Sep 17 00:00:00 2001 From: PhilNewm Date: Sat, 6 Jun 2026 16:24:37 +0200 Subject: [PATCH] fix json decode error attribute name --- pulpcore/app/serializers/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pulpcore/app/serializers/base.py b/pulpcore/app/serializers/base.py index 16cc01e796..8eac0ebfc9 100644 --- a/pulpcore/app/serializers/base.py +++ b/pulpcore/app/serializers/base.py @@ -788,7 +788,7 @@ def to_internal_value(self, data): try: # Nested Serializers in from-urlencoded bodies are stringified as json by default. data = json.loads(data) - except json.DecodeError: + except json.JSONDecodeError: raise serializers.ValidationError( "Invalid json data for (nested) downloader config." )