From 5eb6d8de28968daa524d21e1e0127d56bffe233a Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Mon, 21 Oct 2024 07:07:51 -0300 Subject: [PATCH] exit when cookies file doesnt exist --- votify/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/votify/cli.py b/votify/cli.py index ccf5c2e..d3da182 100644 --- a/votify/cli.py +++ b/votify/cli.py @@ -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(