Skip to content

Commit 54406a7

Browse files
authored
Merge pull request janfri#45 from pictrs/time_range_error
Handle additional exception RangeError in timestamp converting
2 parents e22d557 + ebd2f2d commit 54406a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mini_exiftool.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def convert_after_load tag, value
457457
else
458458
raise MiniExiftool::Error.new("Value #{@opts[:timestamps]} not allowed for option timestamps.")
459459
end
460-
rescue ArgumentError
460+
rescue ArgumentError, RangeError
461461
value = false
462462
end
463463
when /^\+\d+\.\d+$/

0 commit comments

Comments
 (0)