Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit c8dd285

Browse files
committed
parseImage.py re-add try except blocks
1 parent 5070895 commit c8dd285

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

playground/parseImage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def parseImage():
118118

119119
sensData = None, None, None, None, None
120120
target = None
121-
if True:
121+
try:
122122
#from stackoverflow.com/a/14637315
123123
# if XMP in image is spread in multiple pieces, this
124124
# approach will fail to extract data in all
@@ -177,7 +177,7 @@ def parseImage():
177177
print(f'skipping {thisImage}', file=sys.stderr)
178178
continue
179179

180-
else:
180+
except:
181181
print(f'ERROR with filename {thisImage}, skipping...', file=sys.stderr)
182182
continue
183183
#

0 commit comments

Comments
 (0)