浏览代码

Merge pull request #162 from bacardi55/dev

Fix empty password check in settings
Nicolas Marcq 8 年之前
父节点
当前提交
ae5b7258b1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      kalliope/core/ConfigurationManager/SettingLoader.py

+ 1 - 1
kalliope/core/ConfigurationManager/SettingLoader.py

@@ -423,7 +423,7 @@ class SettingLoader(object):
                 if password_protected:
                     if login is None:
                         raise NullSettingException("login setting cannot be null if password_protected is True")
-                    if login is None:
+                    if password is None:
                         raise NullSettingException("password setting cannot be null if password_protected is True")
                 active = rest_api["active"]
                 if active is None: