1. Yann Malet
  2. byteflow

Commits

Yury Yurevich  committed 46d464e

Fix bug in comments feed:
on access comments feed for single post
(i.e. /feeds/<type>/comments/<extr>/ when
extra is not int, got 500 Server error
instead of 404 Not found.

  • Participants
  • Parent commits 28eb1c4
  • Branches default

Comments (0)

Files changed (1)

File apps/feed/blog_feeds.py

View file
             if len(bits) > 1:
                 raise Http404
             elif len(bits) == 1:
+                if not bits[0].isnumeric():
+                    raise Http404
                 try:
                     return Post.objects.get(id=bits[0])
                 except Post.DoesNotExist: