Merge pull request #13749 from MrPetovan/bug/fatal-errors
Also catch TypeError exceptions in Repository\PostMedia
This commit is contained in:
commit
e15e17732d
|
@ -47,7 +47,7 @@ class PostMedia extends BaseRepository
|
|||
foreach ($rows as $fields) {
|
||||
try {
|
||||
$Entities[] = $this->factory->createFromTableRow($fields);
|
||||
} catch (\Exception $e) {
|
||||
} catch (\Throwable $e) {
|
||||
$this->logger->warning('Invalid media row', ['code' => $e->getCode(), 'message' => $e->getMessage(), 'fields' => $fields]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user