Added check for missing file in export_photo

This commit is contained in:
Rhet Turnbull
2019-12-24 08:33:54 -08:00
parent a81c19a01a
commit ff260dc072
2 changed files with 8 additions and 1 deletions

View File

@@ -669,6 +669,13 @@ def export_photo(
space = " " if not verbose else ""
click.echo(f"{space}Skipping missing photos {photo.filename}")
return None
elif not os.path.exists(photo.path):
space = " " if not verbose else ""
click.echo(
f"{space}WARNING: file {photo.path} is missing but ismissing=False, "
f"skipping {photo.filename}"
)
return None
filename = None
if original_name:

View File

@@ -1,3 +1,3 @@
""" version info """
__version__ = "0.17.03"
__version__ = "0.17.04"