From a4a0561bc801eab967b027992fc0f1304a6d5551 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Mon, 20 Nov 2023 11:54:41 -0800 Subject: [PATCH] In new-photo-post.py, continue instead of pass when opening an image fails --- scripts/new-photo-post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/new-photo-post.py b/scripts/new-photo-post.py index 60f059e..cdc7ae9 100755 --- a/scripts/new-photo-post.py +++ b/scripts/new-photo-post.py @@ -37,7 +37,7 @@ def main(argv): try: image = Image.open(photo) except IOError: - pass + continue raw_exif = image._getexif() friendly_exif = {TAGS[k]: v for k, v in raw_exif.items() if k in TAGS}