reorder var definitions after try for consistency

This commit is contained in:
2025-01-14 11:15:20 -05:00
parent 861f4766b3
commit 688e6bf30c
3 changed files with 7 additions and 7 deletions

View File

@@ -38,10 +38,10 @@ class Genius:
@song: the song to search
"""
try:
logging.info("Searching %s - %s on %s",
artist, song, self.label)
artist = artist.strip().lower()
song = song.strip().lower()
logging.info("Searching %s - %s on %s",
artist, song, self.label)
search_term = f'{artist}%20{song}'
returned_lyrics = ''
async with ClientSession() as client: