improve nowPlaying alignment

This commit is contained in:
geoffrey45
2022-02-08 00:39:08 +03:00
parent f93fa79fc5
commit 214ae82344
15 changed files with 113 additions and 71 deletions
+2 -2
View File
@@ -54,7 +54,7 @@ def populate():
def fetch_image_path(artist: str) -> str or None:
"""
Returns a direct link to an artist artist
Returns a direct link to an artist image.
"""
try:
@@ -66,7 +66,7 @@ def fetch_image_path(artist: str) -> str or None:
except requests.exceptions.ConnectionError:
time.sleep(5)
return None
except IndexError:
except (IndexError, KeyError):
return None