From aa5649bcdc24d21515723ce4c862847723839c62 Mon Sep 17 00:00:00 2001 From: Paillat Date: Fri, 14 Jul 2023 16:50:14 +0200 Subject: [PATCH] fix(Configs.py): set SPOTIFY_ID and SPOTIFY_SECRET to None if they are set to default values --- Config/Configs.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Config/Configs.py b/Config/Configs.py index a3a3982..dd6ffdc 100644 --- a/Config/Configs.py +++ b/Config/Configs.py @@ -31,7 +31,13 @@ class VConfigs(Singleton): self.SPOTIFY_ID = os.getenv('SPOTIFY_ID') self.SPOTIFY_SECRET = os.getenv('SPOTIFY_SECRET') - + + if self.SPOTIFY_ID =="Your_Own_Spotify_ID": + self.SPOTIFY_ID = None + + if self.SPOTIFY_SECRET =="Your_Own_Spotify_Secret": + self.SPOTIFY_SECRET = None + if self.SPOTIFY_ID is None or self.SPOTIFY_SECRET is None: print('Spotify will not work')