rss.py coding style

add additional error check