diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2019-06-11 20:54:18 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2019-06-12 09:40:14 +0100 |
commit | 86ddadacf7ef061b303e769a64fc8db2960e89e8 (patch) | |
tree | 4dc5d768670ca806bad42b04d3acc9864d84f934 | |
parent | 632089940cb2a9ebdc66b1f443ab8905daee074d (diff) | |
download | deluge-86ddadacf7ef061b303e769a64fc8db2960e89e8.tar.gz deluge-86ddadacf7ef061b303e769a64fc8db2960e89e8.tar.bz2 deluge-86ddadacf7ef061b303e769a64fc8db2960e89e8.zip |
[Extractor] Fix startup error
On Python 3 need to create a copy of the dict to iterate
Fixes: #3264
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rw-r--r-- | deluge/plugins/Extractor/deluge_extractor/core.py | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index d2ae328bb..aaeb6989b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ - Fix request.base 'idna' codec error (#3261). - Fix unable to change password (#3262). +### Extractor plugin + +- Fix potential error starting plugin. + ### Documentation - Fix macOS install typo. diff --git a/deluge/plugins/Extractor/deluge_extractor/core.py b/deluge/plugins/Extractor/deluge_extractor/core.py index 99d1b083a..8fa5bd3da 100644 --- a/deluge/plugins/Extractor/deluge_extractor/core.py +++ b/deluge/plugins/Extractor/deluge_extractor/core.py @@ -89,7 +89,7 @@ else: # Test command exists and if not, remove. for command in required_cmds: if not which(command): - for k, v in EXTRACT_COMMANDS.items(): + for k, v in list(EXTRACT_COMMANDS.items()): if command in v[0]: log.warning('%s not found, disabling support for %s', command, k) del EXTRACT_COMMANDS[k] |