From 86ddadacf7ef061b303e769a64fc8db2960e89e8 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Tue, 11 Jun 2019 20:54:18 +0100 Subject: [Extractor] Fix startup error On Python 3 need to create a copy of the dict to iterate Fixes: #3264 --- CHANGELOG.md | 4 ++++ deluge/plugins/Extractor/deluge_extractor/core.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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] -- cgit