Skip to content

Commit

Permalink
Merge pull request #34 from leslievan/develop
Browse files Browse the repository at this point in the history
修复 #32 提到的数字转换问题
  • Loading branch information
leslievan authored Apr 20, 2023
2 parents cac4828 + fd3d43e commit 3c935d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entity/image_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, path: Path):
# 光圈大小
try:
self.f_number = float(self.exif['FNumber']) if 'FNumber' in self.exif else .0
except ValueError or ZeroDivisionError:
except:
self.f_number = .0
# 曝光时间
self.exposure_time = str(self.exif['ExposureTime'].real) \
Expand Down

0 comments on commit 3c935d7

Please sign in to comment.