From 7fbd4d1e4718512432a6ed65bf591a18f0a999eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Dlouh=C3=BD?= Date: Thu, 30 Sep 2021 12:06:04 +0200 Subject: [PATCH] fix typo: ObjectDoesNotExist -> DoesNotExist --- django_comments_xtd/api/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_comments_xtd/api/serializers.py b/django_comments_xtd/api/serializers.py index 577217f2..71d004f2 100644 --- a/django_comments_xtd/api/serializers.py +++ b/django_comments_xtd/api/serializers.py @@ -94,7 +94,7 @@ def validate(self, data): except (AttributeError, TypeError, LookupError): raise serializers.ValidationError("Invalid content_type value: %r" % escape(ctype)) - except model.ObjectDoesNotExist: + except model.DoesNotExist: raise serializers.ValidationError( "No object matching content-type %r and object PK %r exists." % (escape(ctype), escape(object_pk)))