mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix sonar finding
Use the opposite operator ("not in") instead. Boolean checks should not be inverted python:S1940
This commit is contained in:
parent
ae41ef1ef9
commit
4b9c6cfd71
@ -18,7 +18,7 @@ class DatabaseBuilder:
|
||||
logger.info("Fresh Install Detected - Creating Default Settings")
|
||||
Console.info("Fresh Install Detected - Creating Default Settings")
|
||||
default_data = self.helper.find_default_password()
|
||||
if not password in default_data:
|
||||
if password not in default_data:
|
||||
Console.help(
|
||||
"No default password found. Using password created "
|
||||
"by Crafty. Find it in app/config/default-creds.txt"
|
||||
|
Loading…
Reference in New Issue
Block a user