Dity hack to fix “RuntimeError: dictionary changed size during iteration”

This commit is contained in:
Alarig Le Lay 2020-07-13 09:26:18 +02:00
parent a6a08103bb
commit 90fa03f9e3
Signed by: alarig
GPG Key ID: 7AFE62C6DF8BCDEC
1 changed files with 1 additions and 1 deletions

View File

@ -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]