From c9f96840cc48aabf222cb038a9aa836f2c740570 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 28 Jan 2010 10:46:42 -0700 Subject: [PATCH] ... --- resources/recipes/economist_free.recipe | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/recipes/economist_free.recipe b/resources/recipes/economist_free.recipe index 217b033b81..0a98c7da28 100644 --- a/resources/recipes/economist_free.recipe +++ b/resources/recipes/economist_free.recipe @@ -53,6 +53,8 @@ class Economist(BasicNewsRecipe): self.feed_dict.items()]) def eco_sort_sections(self, feeds): + if not feeds: + raise ValueError('No new articles found') order = { 'The World This Week': 1, 'Leaders': 2,