Catch ValueError in Exif parsing (#66)
parent
7f8b818056
commit
dc6e8e00d6
|
@ -299,7 +299,9 @@ class Exif {
|
|||
// Check if found something
|
||||
try {
|
||||
return self::parseExifDate($dt);
|
||||
} catch (\Exception $ex) {}
|
||||
} catch (\Exception $ex) {
|
||||
} catch (\ValueError $ex) {
|
||||
}
|
||||
|
||||
// Fall back to creation time
|
||||
$dateTaken = $file->getCreationTime();
|
||||
|
|
Loading…
Reference in New Issue