delete rss-hooks setting when it's empty

This commit is contained in:
jesopo 2019-07-01 21:16:04 +01:00
parent 08c723f9d0
commit 4d096aa79d

View file

@ -129,5 +129,8 @@ class Module(ModuleManager.BaseModule):
raise utils.EventError("Unknown subcommand '%s'" % subcommand) raise utils.EventError("Unknown subcommand '%s'" % subcommand)
if changed: if changed:
if rss_hooks:
event["target"].set_setting("rss-hooks", rss_hooks) event["target"].set_setting("rss-hooks", rss_hooks)
else:
event["target"].del_setting("rss-hooks")
event["stdout"].write(message) event["stdout"].write(message)