Explicit cast of possible dict_keys element to list() before copy()

This commit is contained in:
Fabio Manganiello 2020-11-10 22:53:12 +01:00
parent 45d998130b
commit a07cb6ec3d

View file

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