Update to-photoblog script
This commit is contained in:
parent
e46a62adbb
commit
bd6651c8bd
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user