Strip "-" from setting name when first checking if it exists

This commit is contained in:
jesopo 2019-04-07 17:43:00 +01:00
parent 56dcc2306b
commit 5611f4ceef

View file

@ -294,7 +294,7 @@ class Module(ModuleManager.BaseModule):
export_settings = self._get_export_setting(setting_key) export_settings = self._get_export_setting(setting_key)
if not setting == None: if not setting == None:
if not setting in export_settings: if not setting.lstrip("-") in export_settings:
raise utils.EventError("Setting not found") raise utils.EventError("Setting not found")
try: try: