#703 Bad exception handling in RSS plugin

closed
4
2013-08-24
2011-01-28
No

Hello,

There is a problem in the getFeed() method in RSS plugin: variable 'results' is assigned by :
results = feedparser.parse(url)
But, if this line raises an exception, it is catched by :
except Exception, e:
And the script continues. But, just after the catch, there is:
if results.get('feed', {}):
But variable results doesn't exists, so it raises an error...

This has been reported by user Benwa.

Best regards,
ProgVal

Discussion

  • James McCoy

    James McCoy - 2013-08-24
    • status: open --> closed
    • assigned_to: James McCoy
     

Log in to post a comment.