Fix exception in label plugin when saving preferences

This commit is contained in:
Andrew Resch 2008-12-27 21:06:53 +00:00
parent 00e74c9491
commit e1c5f69d54
1 changed files with 5 additions and 4 deletions

View File

@ -305,11 +305,12 @@ class Core(CorePluginBase):
@export
def set_config(self, options):
"""global_options:"""
for key, value in options.items:
if key in CORE_OPTIONS:
self.config[key] = value
if options:
for key, value in options.items:
if key in CORE_OPTIONS:
self.config[key] = value
self.config.save()
self.config.save()
def _status_get_label(self, torrent_id):
return self.torrent_labels.get(torrent_id) or ""