[Extractor] Fix startup error

On Python 3 need to create a copy of the dict to iterate

Fixes: #3264
This commit is contained in:
Calum Lind 2019-06-11 20:54:18 +01:00
parent 632089940c
commit 86ddadacf7
2 changed files with 5 additions and 1 deletions

View File

@ -9,6 +9,10 @@
- Fix request.base 'idna' codec error (#3261). - Fix request.base 'idna' codec error (#3261).
- Fix unable to change password (#3262). - Fix unable to change password (#3262).
### Extractor plugin
- Fix potential error starting plugin.
### Documentation ### Documentation
- Fix macOS install typo. - Fix macOS install typo.

View File

@ -89,7 +89,7 @@ else:
# Test command exists and if not, remove. # Test command exists and if not, remove.
for command in required_cmds: for command in required_cmds:
if not which(command): if not which(command):
for k, v in EXTRACT_COMMANDS.items(): for k, v in list(EXTRACT_COMMANDS.items()):
if command in v[0]: if command in v[0]:
log.warning('%s not found, disabling support for %s', command, k) log.warning('%s not found, disabling support for %s', command, k)
del EXTRACT_COMMANDS[k] del EXTRACT_COMMANDS[k]