From 9c4cd86492da82719ee0e49ec7fb86d5ddfe01ad Mon Sep 17 00:00:00 2001 From: John Garland Date: Sun, 7 Aug 2011 15:16:44 +1000 Subject: [PATCH] Iterate over values not keys (fixes autoadd error) --- deluge/plugins/autoadd/autoadd/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/plugins/autoadd/autoadd/core.py b/deluge/plugins/autoadd/autoadd/core.py index aa58d8f53..35c1d18d1 100644 --- a/deluge/plugins/autoadd/autoadd/core.py +++ b/deluge/plugins/autoadd/autoadd/core.py @@ -104,7 +104,7 @@ class Core(CorePluginBase): self.core_cfg['autoadd_enable'] = False self.core_cfg.save() # Check if core autoadd folder is already added in plugin - for watchdir in self.watchdirs: + for watchdir in self.watchdirs.itervalues(): if os.path.abspath(self.core_cfg['autoadd_location']) == watchdir['abspath']: watchdir['enabled'] = True break