copypaste fail, setting_info -> export_settings[setting]

This commit is contained in:
jesopo 2019-06-14 17:39:11 +01:00
parent e814494777
commit 1d8173f607

View file

@ -169,7 +169,7 @@ class Module(ModuleManager.BaseModule):
try: try:
result = self._config(export_settings, target, setting, value) result = self._config(export_settings, target, setting, value)
except ConfigInvalidValue: except ConfigInvalidValue:
example = setting_info.get("example", None) example = export_settings[setting].get("example", None)
if not example == None: if not example == None:
raise utils.EventError("Invalid value. Example: %s" % raise utils.EventError("Invalid value. Example: %s" %
example) example)