Explorar o código

Fix empty password check in settings

Raphael Khaiat %!s(int64=8) %!d(string=hai) anos
pai
achega
aa6071f6f4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: