From 90fa03f9e349446b35952c52170b62ee5069dd50 Mon Sep 17 00:00:00 2001 From: Alarig Le Lay Date: Mon, 13 Jul 2020 09:26:18 +0200 Subject: [PATCH] =?UTF-8?q?Dity=20hack=20to=20fix=20=E2=80=9CRuntimeError:?= =?UTF-8?q?=20dictionary=20changed=20size=20during=20iteration=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- announce_url_title.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/announce_url_title.py b/announce_url_title.py index 019f8af..031243b 100644 --- a/announce_url_title.py +++ b/announce_url_title.py @@ -308,7 +308,7 @@ def purge_cb(*args): global urls t_now = now() - for url, url_d in urls.items(): + for url, url_d in urls.copy(): if (t_now - url_d['launched']) > \ int(w.config_get_plugin('reannounce_wait'))*60: del urls[url]