exit when cookies file doesnt exist

This commit is contained in:
Rafael Moraes
2024-10-21 07:07:51 -03:00
parent e8167f0e37
commit 5eb6d8de28
+1
View File
@@ -400,6 +400,7 @@ def main(
else:
if not cookies_path.exists():
logger.critical(X_NOT_FOUND_STRING.format("Cookies file", cookies_path))
return
spotify_api = SpotifyApi.from_file(cookies_path)
if spotify_api.config_info["isAnonymous"]:
logger.critical(