Added check for wrong spotify username

This commit is contained in:
RemixDev 2020-06-29 13:58:40 +02:00
parent f91dcc5c34
commit 6e8f4242e1

5
app.py
View file

@ -101,7 +101,10 @@ def getUserFavorites(dz):
def updateUserSpotifyPlaylists(user):
if user == "" or not spotifyHelper.spotifyEnabled:
return []
return spotifyHelper.get_user_playlists(user)
try:
return spotifyHelper.get_user_playlists(user)
except:
return []
def updateUserPlaylists(dz):