feed: Convert missing/extra key errors to InvalidFeedConfig
authorW. Trevor King <wking@tremily.us>
Thu, 24 Jan 2013 01:03:51 +0000 (20:03 -0500)
committerW. Trevor King <wking@tremily.us>
Thu, 24 Jan 2013 01:07:20 +0000 (20:07 -0500)
commit6c45051420cff79da3493a27ebc41eacac256332
tree06f8ec9071f3dbc20254240fca05e05ce462f655
parentb0014c77d9c1ab7828dbdefcfa5034739ae9b248
feed: Convert missing/extra key errors to InvalidFeedConfig

This way we get the message and not a full traceback, to avoid scaring
users who aren't familiar with Python tracebacks.  Theres not much
information to go on in the new message, but if you crank up the
verbosity, you get:

  $ PYTHONPATH=. ./r2e -c conf -d data -VVV list
  load feed configuration from ['conf']
  loaded configuration from ['conf']
  load feed data from data
  extra configuration key: use_8bit

which seems good enough for me.

Reported-by: Dmitry Bogatov <KAction@gnu.org>
Signed-off-by: W. Trevor King <wking@tremily.us>
rss2email/feed.py