From f7db80ad7e789ef4f0339d8c72540836a3063b1d Mon Sep 17 00:00:00 2001 From: ilikecats Date: Fri, 29 Nov 2024 21:32:41 -0500 Subject: [PATCH] When comic doesn't exist, exit --- downloader.py | 1 + 1 file changed, 1 insertion(+) diff --git a/downloader.py b/downloader.py index e6b7405..67989f0 100755 --- a/downloader.py +++ b/downloader.py @@ -37,6 +37,7 @@ comic_id = "breaking-cat-news" if requests.get(f"https://www.gocomics.com/{comic_id}/").status_code != 200: print("Error: Unable to access comic. Does it exist? Do you have internet access?") + exit(1) ### Get date of first comic