mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2026-01-02 07:26:39 +00:00
Refactor exceptions
* Suffix names for custom exceptions with "Error" * Introduce exceptions for when the coressponding encoder isn't found
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import lyricwikia
|
||||
|
||||
from spotdl.lyrics.lyric_base import LyricBase
|
||||
from spotdl.lyrics.exceptions import LyricsNotFound
|
||||
from spotdl.lyrics.exceptions import LyricsNotFoundError
|
||||
|
||||
|
||||
class LyricWikia(LyricBase):
|
||||
@@ -13,6 +13,6 @@ class LyricWikia(LyricBase):
|
||||
try:
|
||||
lyrics = lyricwikia.get_lyrics(self.artist, self.song, linesep, timeout)
|
||||
except lyricwikia.LyricsNotFound as e:
|
||||
raise LyricsNotFound(e.args[0])
|
||||
raise LyricsNotFoundError(e.args[0])
|
||||
else:
|
||||
return lyrics
|
||||
|
||||
Reference in New Issue
Block a user