mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +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():
|
||||
""" 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(
|
||||
client_id=const.args.spotify_client_id,
|
||||
client_secret=const.args.spotify_client_secret,
|
||||
|
||||
Reference in New Issue
Block a user