Fix creating new config with missing keys

This commit is contained in:
deajan 2024-05-06 18:50:14 +02:00
parent 8203d5c6b3
commit 0ad07716e4

View file

@ -248,9 +248,10 @@ def key_should_be_encrypted(key: str, encrypted_options: List[str]):
"""
Checks whether key should be encrypted
"""
for option in encrypted_options:
if option in key:
return True
if key:
for option in encrypted_options:
if option in key:
return True
return False