Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#10141 closed (fixed)

exception name typo?

Reported by: temoto Owned by: timo
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 timo 7 years ago.
initial patch

Download all attachments as: .zip

Change History (5)

comment:1 Changed 7 years ago by temoto

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

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

Probably, ObjectDoesNotExist should be imported too?

Changed 7 years ago by timo

initial patch

comment:2 Changed 7 years ago by timo

  • Has patch set
  • Owner changed from nobody to timo
  • Status changed from new to assigned
  • Triage Stage changed from Unreviewed to Ready for checkin
  • Version changed from 1.0 to SVN

missing import added

comment:3 Changed 7 years ago by russellm

  • Resolution set to fixed
  • Status changed from assigned to closed

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

comment:4 Changed 7 years ago by russellm

(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