1
0

Update to-photoblog script

This commit is contained in:
Noah 2023-04-29 09:51:43 -07:00
parent e46a62adbb
commit bd6651c8bd

View File

@ -32,6 +32,7 @@ def main(args):
print(f"Going to photoblog: {list(file_map.values())}")
# Test each file doesn't already exist.
not_existing = list()
if not args.lazy:
print(f"Checking each file isn't already uploaded...")
problems = False
@ -46,8 +47,11 @@ def main(args):
print(f"Warning: file '{name}' already existed at '{test_url}' and won't be uploaded without --lazy")
problems = True
except:
not_existing.append(name)
pass
print(f"New files not found on the blog: {not_existing}")
if problems:
quit()