From 3dd8597414aee74d2f8f9af5b2f0dc3e675bbcc1 Mon Sep 17 00:00:00 2001 From: Lukas Schulz Date: Sun, 20 Dec 2020 12:17:56 +0100 Subject: [PATCH] yes. --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 65c207c..47df705 100644 --- a/main.py +++ b/main.py @@ -93,6 +93,8 @@ def showImage(image, offset_x = 0, offset_y = 0): def drawCanvas(): canvas = Image.new('RGB', (192, 128), color = 'black') cover_art = get_track() + if (cover_art is None): + return if(is_playing): canvas.paste(cover_art,(0,96)) songinfo = ImageDraw.Draw(canvas)