Skip to content

Commit d1e1aed

Browse files
authored
Reverted back the exception part
1 parent 31c68f5 commit d1e1aed

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/Message/FindCustomerRequest.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace Omnipay\Braintree\Message;
44

5-
use Braintree\Exception\NotFound;
6-
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
7-
85
/**
96
* Find Customer Request
107
* @method CustomerResponse send()
@@ -22,16 +19,11 @@ public function getData()
2219
* @param mixed $data
2320
*
2421
* @return \Omnipay\Braintree\Message\CustomerResponse|\Omnipay\Common\Message\ResponseInterface
25-
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
2622
*/
2723
public function sendData($data)
2824
{
29-
try {
30-
$response = $this->braintree->customer()->find($this->getCustomerId());
31-
} catch (NotFound $exception) {
32-
throw new NotFoundHttpException($exception->getMessage());
33-
}
25+
$response = $this->braintree->customer()->find($this->getCustomerId());
3426

3527
return $this->response = new CustomerResponse($this, $response);
3628
}
37-
}
29+
}

0 commit comments

Comments
 (0)