Skip to content

Commit 0d7e776

Browse files
committed
the document name from the url would result in a 500 error. This workaround has intimate knowledge of the feed class (in particular, that link() is the first method it calls with obj==None). Hopefully we will remember to remove it when deploying on a django version with this bug fixed. - Legacy-Id: 750
1 parent c5f27ab commit 0d7e776

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ietf/idtracker/feeds.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright The IETF Trust 2007, All Rights Reserved
22

3-
from django.contrib.syndication.feeds import Feed
3+
from django.contrib.syndication.feeds import Feed, FeedDoesNotExist
44
from django.utils.feedgenerator import Atom1Feed
55
from ietf.idtracker.models import InternetDraft, DocumentComment
66
import datetime
@@ -16,6 +16,8 @@ def title(self, obj):
1616
return "I-D Tracker comments for %s" % obj.filename
1717

1818
def link(self, obj):
19+
if obj is None:
20+
raise FeedDoesNotExist
1921
return "/idtracker/%s" % obj.filename
2022
# obj.get_absolute_url() ?
2123

0 commit comments

Comments
 (0)