Module: deluge Branch: 1.3-stable Commit: 9c4cd86492da82719ee0e49ec7fb86d5ddfe01ad
Author: John Garland <[email protected]> Date: Sun Aug 7 15:16:44 2011 +1000 Iterate over values not keys (fixes autoadd error) --- deluge/plugins/autoadd/autoadd/core.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/deluge/plugins/autoadd/autoadd/core.py b/deluge/plugins/autoadd/autoadd/core.py index aa58d8f..35c1d18 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 -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
