Skip if file exists

This commit is contained in:
ilikecats
2024-12-30 11:13:39 -08:00
parent 294dd2b04c
commit 2a4a6b9288
+1 -2
View File
@@ -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 (