Django

Code

Ticket #8128 (closed: fixed)

Opened 4 months ago

Last modified 4 months ago

Contrib.syndication throwing AttributeError in latest trunk revision

Reported by: patrickbeeson@gmail.com Assigned to: nobody
Milestone: post-1.0 Component: Uncategorized
Version: SVN Keywords: syndication contrib
Cc: Triage Stage: Accepted
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description (Last modified by jacob)

Here is my traceback:

Traceback (most recent call last):

 File "/home/pbeeson/webapps/django/lib/django/core/handlers/base.py", line 87, in get_response
   response = callback(request, *callback_args, **callback_kwargs)

 File "/home/pbeeson/webapps/django/lib/django/contrib/syndication/views.py", line 19, in feed
   feedgen = f(slug, request).get_feed(param)

 File "/home/pbeeson/webapps/django/lib/django/contrib/syndication/feeds.py", line 146, in get_feed
   pubdate = pubdate.replace(tzinfo=FixedOffset(tzOffset))

AttributeError: 'NoneType' object has no attribute 'replace'

Attachments

Change History

08/05/08 18:43:16 changed by jacob

  • needs_better_patch changed.
  • needs_tests changed.
  • needs_docs changed.

Must be something in [8216].

08/05/08 18:48:37 changed by jacob

  • description changed.

(fixed formatting)

08/05/08 18:48:42 changed by jacob

  • stage changed from Unreviewed to Accepted.

08/05/08 18:52:04 changed by jacob

  • status changed from new to closed.
  • resolution set to fixed.

(In [8221]) Fixed #8128: correctly handle feeds that incorrectly don't provide pubdates. Be liberal in what you accept!


Add/Change #8128 (Contrib.syndication throwing AttributeError in latest trunk revision)




Change Properties
Action