diff --git a/src/Traits/QueryBuilderTrait.php b/src/Traits/QueryBuilderTrait.php index 143df5a..8961fde 100644 --- a/src/Traits/QueryBuilderTrait.php +++ b/src/Traits/QueryBuilderTrait.php @@ -101,13 +101,7 @@ protected function batch($data) */ protected function get() { - try { - $results = WooCommerce::all($this->endpoint, $this->options); - - return $results; - } catch (\Exception $ex) { - throw new \Exception($ex->getMessage(), 1); - } + return WooCommerce::all($this->endpoint, $this->options); } /**