Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#10141 closed (fixed)

exception name typo?

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

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 15 years ago.
initial patch

Download all attachments as: .zip

Change History (5)

comment:1 by temoto, 15 years ago

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

Probably, ObjectDoesNotExist should be imported too?

by Tim Graham, 15 years ago

Attachment: syndication-import-fix.diff added

initial patch

comment:2 by Tim Graham, 15 years ago

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 by Russell Keith-Magee, 15 years ago

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 by Russell Keith-Magee, 15 years ago

(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