Skip to content

Commit 70839d2

Browse files
committed
fix typo: ObjectDoesNotExist -> DoesNotExist
1 parent 493542c commit 70839d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_comments_xtd/api/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def validate(self, data):
9494
except (AttributeError, TypeError, LookupError):
9595
raise serializers.ValidationError("Invalid content_type value: %r"
9696
% escape(ctype))
97-
except model.ObjectDoesNotExist:
97+
except model.DoesNotExist:
9898
raise serializers.ValidationError(
9999
"No object matching content-type %r and object PK %r exists."
100100
% (escape(ctype), escape(object_pk)))

0 commit comments

Comments
 (0)