Catch ValueError in Exif parsing (#66)
parent
0ef926e5b4
commit
11e7b4fbb1
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue