Fix exception in label plugin when saving preferences
This commit is contained in:
parent
2ff6b85771
commit
7b99298203
@ -297,11 +297,12 @@ class Core(CorePluginBase):
|
|||||||
|
|
||||||
def export_set_config(self, options):
|
def export_set_config(self, options):
|
||||||
"""global_options:"""
|
"""global_options:"""
|
||||||
for key, value in options.items:
|
if options:
|
||||||
if key in CORE_OPTIONS:
|
for key, value in options.items:
|
||||||
self.config[key] = value
|
if key in CORE_OPTIONS:
|
||||||
|
self.config[key] = value
|
||||||
|
|
||||||
self.config.save()
|
self.config.save()
|
||||||
|
|
||||||
def _status_get_label(self, torrent_id):
|
def _status_get_label(self, torrent_id):
|
||||||
return self.torrent_labels.get(torrent_id) or ""
|
return self.torrent_labels.get(torrent_id) or ""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user