Catch ValueError in Exif parsing (#66)

old-stable24
Varun Patil 2022-10-11 12:57:55 -07:00
parent 7f8b818056
commit dc6e8e00d6
1 changed files with 3 additions and 1 deletions

View File

@ -299,7 +299,9 @@ class Exif {
// Check if found something // Check if found something
try { try {
return self::parseExifDate($dt); return self::parseExifDate($dt);
} catch (\Exception $ex) {} } catch (\Exception $ex) {
} catch (\ValueError $ex) {
}
// Fall back to creation time // Fall back to creation time
$dateTaken = $file->getCreationTime(); $dateTaken = $file->getCreationTime();