Browse Source

Bug fix on the settings validator module

Roland Haroutiounian 8 years ago
parent
commit
441be193a9
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lodel/settings/validator.py

+ 1
- 1
lodel/settings/validator.py View File

@@ -245,7 +245,7 @@ def plugin_val(value):
245 245
     def plugin_check(hookname, caller, payload):
246 246
         from lodel import plugin
247 247
         for inst in plugin._plugin_instances:
248
-            if (!isinstance(value, inst)):
248
+            if (not isinstance(value, inst)):
249 249
                 msg = "Following plugin types do not exists in the loader: %s"
250 250
                 raise SettingsValidationError(msg % value)
251 251
     return value

Loading…
Cancel
Save