mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-12-08 20:39:08 +00:00
Refactored to pass tests
This commit is contained in:
committed by
Ritiek Malhotra
parent
cf9b0690fd
commit
c886ccf603
@@ -17,7 +17,7 @@ spotify = None
|
|||||||
|
|
||||||
def generate_token():
|
def generate_token():
|
||||||
""" Generate the token. """
|
""" Generate the token. """
|
||||||
if const.args.spotify_client_id and const.args.spotify_client_secret:
|
if const.args is not None and const.args.spotify_client_id and const.args.spotify_client_secret:
|
||||||
credentials = oauth2.SpotifyClientCredentials(
|
credentials = oauth2.SpotifyClientCredentials(
|
||||||
client_id=const.args.spotify_client_id,
|
client_id=const.args.spotify_client_id,
|
||||||
client_secret=const.args.spotify_client_secret,
|
client_secret=const.args.spotify_client_secret,
|
||||||
|
|||||||
Reference in New Issue
Block a user