diff --git a/etiquette/helpers.py b/etiquette/helpers.py index 7885d7c..8079586 100644 --- a/etiquette/helpers.py +++ b/etiquette/helpers.py @@ -504,6 +504,8 @@ def zip_photos(photos): zipfile = zipstream.ZipFile() for photo in photos: + if not photo.real_path.is_file: + continue arcname = os.path.join('photos', f'{photo.id} - {photo.basename}') zipfile.write(filename=photo.real_path.absolute_path, arcname=arcname)