Skip if file exists
This commit is contained in:
+1
-2
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user