From 2a4a6b928863d171b8e27a2a18132bdd9196ba65 Mon Sep 17 00:00:00 2001 From: ilikecats Date: Mon, 30 Dec 2024 11:13:39 -0800 Subject: [PATCH] Skip if file exists --- downloader.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/downloader.py b/downloader.py index 9defd56..d02cb19 100755 --- a/downloader.py +++ b/downloader.py @@ -105,8 +105,7 @@ while True: # Just going to use `break` to exit with open(file, 'xb') as f: f.write(requests.get(image_url).content) else: - print("{file} exists, delete it to continue.") - exit(1) + print(f"{file} exists, skipping...") ## Check if there is a next comic. If there is, choose it for next download. ## If there isn't, exit. if not "disabled" in (