Skip to content

Commit

Permalink
Merge pull request #346 from PetrDlouhy/fix_dne_typo
Browse files Browse the repository at this point in the history
fix typo: ObjectDoesNotExist -> DoesNotExist
  • Loading branch information
danirus authored Sep 30, 2021
2 parents 5eadaa4 + 7fbd4d1 commit 11b7613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_comments_xtd/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit 11b7613

Please sign in to comment.