reorder var definitions after try for consistency
This commit is contained in:
@@ -47,9 +47,9 @@ class Cache:
|
||||
Returns:
|
||||
- LyricsResult corresponding to nearest match found (if found), **None** otherwise
|
||||
"""
|
||||
artist = artist.strip().lower()
|
||||
song = song.strip().lower()
|
||||
try:
|
||||
artist = artist.strip().lower()
|
||||
song = song.strip().lower()
|
||||
logging.info("Searching %s - %s on %s",
|
||||
artist, song, self.label)
|
||||
async with sqlite3.connect(self.cache_db, timeout=2) as db_conn:
|
||||
|
||||
Reference in New Issue
Block a user