When comic doesn't exist, exit

This commit is contained in:
ilikecats 2024-11-29 21:32:41 -05:00
parent f3fcf7d62e
commit f7db80ad7e

View File

@ -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