Skip to content

Intermittent crash in update_rsscontent command: Feeds without links #376

@PiDelport

Description

@PiDelport

I have a update_rsscontent cron job that crashes sometimes, in the following lookup:

Traceback (most recent call last):
  [...]
  File "<site-packages>/feincms/management/commands/update_rsscontent.py", line 24, in handle
    content.cache_content()
  File "<site-packages>/feincms/content/rss/models.py", line 45, in cache_content
    'feed_link': feed['feed']['link'],
  File "<site-packages>/feedparser.py", line 383, in __getitem__
    return dict.__getitem__(self, key)
KeyError: 'link'

The job works successfully most of the time, so this failure presumably only happens when the feed in question (http://www.miningreview.com/node/feed) lacks the given key, for whatever reason.

Package versions:

  • Python 2.6.5
  • Django 1.4
  • FeinCMS 1.6.2
  • feedparser 5.1.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions