@@ -11,9 +11,12 @@ |
||
| 11 | 11 | { |
| 12 | 12 | public function request(RequestInterface $request, callable $handler): PromiseInterface |
| 13 | 13 | { |
| 14 | - try { |
|
| 14 | + try |
|
| 15 | + { |
|
| 15 | 16 | return parent::request($request, $handler); |
| 16 | - } catch (TooManyRequestsHttpException $tooManyRequestsHttpException) { |
|
| 17 | + } |
|
| 18 | + catch (TooManyRequestsHttpException $tooManyRequestsHttpException) |
|
| 19 | + { |
|
| 17 | 20 | $response = $this->_getResponse($request); |
| 18 | 21 | if ($response !== null) { |
| 19 | 22 | return new FulfilledPromise($response); |