#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)
Change History (5)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
| Has patch: | set |
|---|---|
| Owner: | changed from to |
| Status: | new → assigned |
| Triage Stage: | Unreviewed → Ready for checkin |
| Version: | 1.0 → SVN |
missing import added
comment:3 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
comment:4 by , 17 years ago
Note:
See TracTickets
for help on using tickets.
I'm sorry, i spotted usage of both lower.
Probably,
ObjectDoesNotExistshould be imported too?