From a07cb6ec3d2195261a461a67a33903db1e155c01 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 10 Nov 2020 22:53:12 +0100 Subject: [PATCH] Explicit cast of possible dict_keys element to list() before copy() --- platypush/plugins/rtorrent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/plugins/rtorrent.py b/platypush/plugins/rtorrent.py index d430c814b..0544c22eb 100644 --- a/platypush/plugins/rtorrent.py +++ b/platypush/plugins/rtorrent.py @@ -450,7 +450,7 @@ class RtorrentPlugin(TorrentPlugin): Terminate all the active transfers and quit the monitor. """ # noinspection PyUnresolvedReferences - torrents = self.status().output.keys().copy() + torrents = list(self.status().output.keys()).copy() for torrent in torrents: self.remove(torrent)