In new-photo-post.py, continue instead of pass when opening an image fails
This commit is contained in:
parent
bcae9f135c
commit
a4a0561bc8
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ def main(argv):
|
||||||
try:
|
try:
|
||||||
image = Image.open(photo)
|
image = Image.open(photo)
|
||||||
except IOError:
|
except IOError:
|
||||||
pass
|
continue
|
||||||
|
|
||||||
raw_exif = image._getexif()
|
raw_exif = image._getexif()
|
||||||
friendly_exif = {TAGS[k]: v for k, v in raw_exif.items() if k in TAGS}
|
friendly_exif = {TAGS[k]: v for k, v in raw_exif.items() if k in TAGS}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue