Ticket #5855: patch-5855.diff
File patch-5855.diff, 764 bytes (added by , 17 years ago) |
---|
-
django/contrib/syndication/feeds.py
60 60 Returns a feedgenerator.DefaultFeed object, fully populated, for 61 61 this feed. Raises FeedDoesNotExist for invalid parameters. 62 62 """ 63 if url:63 if hasattr(self, 'get_object'): 64 64 try: 65 65 obj = self.get_object(url.split('/')) 66 except ( AttributeError,ObjectDoesNotExist):66 except (ObjectDoesNotExist): 67 67 raise FeedDoesNotExist 68 elif url: 69 raise FeedDoesNotExist 68 70 else: 69 71 obj = None 70 72