diff --git a/Client.php b/Client.php index 753b7aa..9e64097 100644 --- a/Client.php +++ b/Client.php @@ -496,7 +496,7 @@ protected function executeRequest() { } catch ( Exception $e ) { // Retry if exception can be retried - if ( $e->getCode() == Exception::RETRY && $this->retries < $this->max_retry_attempts ) { + if ( $e->getHandleCode() == Exception::HANDLE_AS_RETRY && $this->retries < $this->max_retry_attempts ) { // Retry the request $request_success = false; $this->retries ++;