From 05f4d71dbb3e92ea907727e9621e4d85c4da9aee Mon Sep 17 00:00:00 2001 From: Lukas Schulz Date: Sun, 20 Dec 2020 13:15:03 +0100 Subject: [PATCH] yes. --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index f6642c4..773a69a 100644 --- a/main.py +++ b/main.py @@ -47,6 +47,8 @@ def get_track(): print('getting current song info') sp = spotipy.Spotify(auth=token) track = sp.currently_playing() + if track is None: + return global is_playing is_playing = track['is_playing'] global song_name