TOKU: FIX: exceptions
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
namespace Incoviba\Service\Venta\MediosPago\Toku;
|
||||
|
||||
use PDOException;
|
||||
use Psr\Http\Client\ClientInterface;
|
||||
use Incoviba\Common\Implement\Exception\EmptyResponse;
|
||||
use Incoviba\Common\Implement\Exception\EmptyResult;
|
||||
@ -63,7 +64,7 @@ class Subscription extends AbstractEndPoint
|
||||
try {
|
||||
$this->delete($tokuId);
|
||||
$this->subscriptionRepsitory->removeByTokuId($tokuId);
|
||||
} catch (EmptyResponse $exception) {
|
||||
} catch (EmptyResponse | PDOException $exception) {
|
||||
$this->logger->warning($exception, ['subscription->toku_id' => $tokuId]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user