Strip "-" from setting name when first checking if it exists
This commit is contained in:
parent
56dcc2306b
commit
5611f4ceef
1 changed files with 1 additions and 1 deletions
|
@ -294,7 +294,7 @@ class Module(ModuleManager.BaseModule):
|
|||
|
||||
export_settings = self._get_export_setting(setting_key)
|
||||
if not setting == None:
|
||||
if not setting in export_settings:
|
||||
if not setting.lstrip("-") in export_settings:
|
||||
raise utils.EventError("Setting not found")
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue