mirror of
https://github.com/friendica/friendica
synced 2024-11-18 09:03:42 +00:00
Merge pull request #13749 from MrPetovan/bug/fatal-errors
Also catch TypeError exceptions in Repository\PostMedia
This commit is contained in:
commit
e15e17732d
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue