update py

This commit is contained in:
2024-07-14 23:06:07 +02:00
parent 13bcc98cac
commit 33054a1f1c
6 changed files with 101 additions and 94 deletions

View File

@@ -46,6 +46,11 @@ class ConfigEncryptor:
return {key: config[key] for key in keys_to_return if key in config}
except FileNotFoundError:
return None
def load_credentials(self):
config = self.load_config()
if config:
return config.get("credentials")
return None
@staticmethod
def is_json_serializable(value):