When comic doesn't exist, exit
This commit is contained in:
parent
f3fcf7d62e
commit
f7db80ad7e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user