Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#10141 closed (fixed)

exception name typo?

Reported by: temoto Owned by: Tim Graham
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

http://docs.djangoproject.com/en/dev/ref/contrib/syndication/#a-complex-example

from django.contrib.syndication.feeds import FeedDoesNotExist

class BeatFeed(Feed):
    def get_object(self, bits):
        # In case of "/rss/beats/0613/foo/bar/baz/", or other such clutter,
        # check that bits has only one member.
        if len(bits) != 1:
            raise ObjectDoesNotExist

Probably, it should be FeedDoesNotExist?

Attachments (1)

syndication-import-fix.diff (505 bytes) - added by Tim Graham 8 years ago.
initial patch

Download all attachments as: .zip

Change History (5)

comment:1 Changed 8 years ago by temoto

I'm sorry, i spotted usage of both lower.

Probably, ObjectDoesNotExist should be imported too?

Changed 8 years ago by Tim Graham

Attachment: syndication-import-fix.diff added

initial patch

comment:2 Changed 8 years ago by Tim Graham

Has patch: set
Owner: changed from nobody to Tim Graham
Status: newassigned
Triage Stage: UnreviewedReady for checkin
Version: 1.0SVN

missing import added

comment:3 Changed 8 years ago by Russell Keith-Magee

Resolution: fixed
Status: assignedclosed

(In [9858]) Fixed #10141 -- Added a missing import to the complex Feed example. Thanks to Temoto for the report.

comment:4 Changed 8 years ago by Russell Keith-Magee

(In [9868]) [1.0.X] Fixed #10141 -- Added a missing import to the complex Feed example. Thanks to Temoto for the report.

Merge of r9858 from trunk.

Note: See TracTickets for help on using tickets.
Back to Top