fix(Configs.py): set SPOTIFY_ID and SPOTIFY_SECRET to None if they are set to default values

This commit is contained in:
Paillat 2023-07-14 16:50:14 +02:00
parent 6cfd188c3b
commit aa5649bcdc

View File

@ -32,6 +32,12 @@ class VConfigs(Singleton):
self.SPOTIFY_ID = os.getenv('SPOTIFY_ID') self.SPOTIFY_ID = os.getenv('SPOTIFY_ID')
self.SPOTIFY_SECRET = os.getenv('SPOTIFY_SECRET') 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: if self.SPOTIFY_ID is None or self.SPOTIFY_SECRET is None:
print('Spotify will not work') print('Spotify will not work')