Catch ValueError in Exif parsing (#66)

cache
Varun Patil 2022-10-11 12:57:55 -07:00
parent 0ef926e5b4
commit 11e7b4fbb1
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();