Skip to content

Commit

Permalink
Added FeedDoesNotExist exception to feeds.py. The old documentation s…
Browse files Browse the repository at this point in the history
…eems to imply it is part of the depreciated API.
  • Loading branch information
bfirsh committed Dec 12, 2009
1 parent 9cd32a0 commit 028fe2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion syndication/feeds.py
@@ -1,6 +1,8 @@
from django.core.exceptions import ObjectDoesNotExist

from syndication import views
# This is part of the depreciated API, so import it directly
from syndication.views import FeedDoesNotExist

class Feed(views.Feed):
"""Provided for backwards compatibility."""
Expand All @@ -26,5 +28,5 @@ def get_feed(self, url=None):
try:
obj = self.get_object(bits)
except ObjectDoesNotExist:
raise views.FeedDoesNotExist
raise FeedDoesNotExist
return super(Feed, self).get_feed(obj, self.request)
1 change: 1 addition & 0 deletions syndication/views.py
Expand Up @@ -18,6 +18,7 @@ def add_domain(domain, url):
class FeedDoesNotExist(ObjectDoesNotExist):
pass


class Feed(object):
feed_type = feedgenerator.DefaultFeed
title_template = None
Expand Down

0 comments on commit 028fe2c

Please sign in to comment.