From 6021b912ff89a530749c411eaa87dc2e21b0e979 Mon Sep 17 00:00:00 2001 From: pictuga Date: Mon, 6 Jul 2020 19:25:48 +0200 Subject: [PATCH] morss: fix item removal Usual issue when editing a list while looping over it --- morss/morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/morss.py b/morss/morss.py index c64f87c..4149396 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -350,7 +350,7 @@ def FeedGather(rss, url, options): else: # default behavior, take the first items (in appearing order) - sorted_items = rss.items + sorted_items = list(rss.items) for i, item in enumerate(sorted_items): if time.time() - start_time > lim_time >= 0 or i + 1 > lim_item >= 0: