mirror of
https://github.com/glomatico/votify.git
synced 2026-09-29 20:42:32 +02:00
Improve error message for missing sp_dc cookie
This commit is contained in:
@@ -59,7 +59,10 @@ class SpotifyApi:
|
||||
)
|
||||
sp_dc = parse_cookie("sp_dc")
|
||||
if sp_dc is None:
|
||||
raise ValueError(f"Cookie file contain 'sp_dc' cookie.")
|
||||
raise ValueError(
|
||||
'"sp_dc" cookie not found in cookies. '
|
||||
"Make sure you have exported the cookies from the Spotify homepage and are logged in."
|
||||
)
|
||||
return cls(sp_dc=sp_dc)
|
||||
|
||||
def _set_session(self):
|
||||
|
||||
Reference in New Issue
Block a user