Prevent trackback when no news is scheduled and clicking downloading all scheduled news button.

This commit is contained in:
John Schember 2009-05-20 20:33:34 -04:00
parent d1087fa909
commit b827dea7f1

View File

@ -133,7 +133,7 @@ class RecipeModel(QAbstractItemModel, SearchQueryParser):
self._map = dict(self.category_map)
def scheduled_recipes(self):
for recipe in self.category_map[_('Scheduled')]:
for recipe in self.category_map.get(_('Scheduled'), []):
yield recipe
def sort_categories(self, x, y):