Catch specific exceptions (not the parent IMapperException) in StackMapper::findStackFromCardId()
Signed-off-by: Raul Ferreira Fuentes <raul@nextcloud.com>
This commit is contained in:
@@ -62,9 +62,10 @@ WHERE c.id = ?
|
|||||||
SQL;
|
SQL;
|
||||||
try {
|
try {
|
||||||
return $this->findEntity($sql, [$cardId]);
|
return $this->findEntity($sql, [$cardId]);
|
||||||
} catch (IMapperException $e) {
|
} catch (MultipleObjectsReturnedException|DoesNotExistException $e) {
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user