From d773d8b8da60b139236a50ba38a3797978f6bddc Mon Sep 17 00:00:00 2001 From: Alex Orid Date: Tue, 22 Sep 2020 18:26:04 -0400 Subject: [PATCH] Modified load_credentials() Made the load_credentials function add credentials to the credential lists. --- credentials.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/credentials.py b/credentials.py index 566a6a7..b323128 100644 --- a/credentials.py +++ b/credentials.py @@ -61,12 +61,18 @@ class Credentials_Module(): if file.lower().find("twitch") != -1: credential_loading_function = self.credentialLoadingFunctions.get(Credential.Twitch_Credential) output = credential_loading_function(self, file) + if output is not None: + self.Twitch_Credentials_List.append(output) if file.lower().find("discord") != -1: credential_loading_function = self.credentialLoadingFunctions.get(Credential.Discord_Credential) output = credential_loading_function(self, file) + if output is not None: + self.Discord_Credentials_List.append(output) if file.lower().find("db") != -1: credential_loading_function = self.credentialLoadingFunctions.get(Credential.DB_Credential) output = credential_loading_function(self, file) + if output is not None: + self.DB_Credentials_List.append(output) def list_credential_files(self): credentialPath = self.get_credentials_dir()