From b3f3400e6ac24e9e70fc22960129bf984a336074 Mon Sep 17 00:00:00 2001 From: Roman Isecke Date: Fri, 20 Dec 2024 15:13:40 -0500 Subject: [PATCH] bump changelog --- CHANGELOG.md | 21 ++++--------------- unstructured_ingest/__version__.py | 2 +- .../v2/processes/connectors/fsspec/gcs.py | 13 ++++++------ 3 files changed, 11 insertions(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index caa9d87f..e98a0fb8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,20 +1,4 @@ -## 0.3.12-dev3 - -### Enhancements - -* **Migrate Vectara Destination Connector to v2** - -## 0.3.12-dev2 - -### Enhancements - -* **Added Redis destination connector** - -## 0.3.12-dev1 - -* **Bypass asyncio exception grouping to return more meaningful errors from OneDrive indexer** - -## 0.3.12-dev0 +## 0.3.12-dev4 ### Fixes @@ -22,6 +6,9 @@ ### Enhancements +* **Migrate Vectara Destination Connector to v2** +* **Added Redis destination connector** +* **Bypass asyncio exception grouping to return more meaningful errors from OneDrive indexer** * **Kafka destination connector checks for existence of topic** * **Create more reflective custom errors** Provide errors to indicate if the error was due to something user provided or due to a provider issue, applicable to all steps in the pipeline. * **Bypass asyncio exception grouping to return more meaningful errors from OneDrive indexer** diff --git a/unstructured_ingest/__version__.py b/unstructured_ingest/__version__.py index 3ad6f8bf..5d08f71b 100644 --- a/unstructured_ingest/__version__.py +++ b/unstructured_ingest/__version__.py @@ -1 +1 @@ -__version__ = "0.3.12-dev3" # pragma: no cover +__version__ = "0.3.12-dev4" # pragma: no cover diff --git a/unstructured_ingest/v2/processes/connectors/fsspec/gcs.py b/unstructured_ingest/v2/processes/connectors/fsspec/gcs.py index fb2409a9..7657a1ec 100644 --- a/unstructured_ingest/v2/processes/connectors/fsspec/gcs.py +++ b/unstructured_ingest/v2/processes/connectors/fsspec/gcs.py @@ -115,13 +115,12 @@ def wrap_error(self, e: Exception) -> Exception: raise UserError(e) if isinstance(e, ValueError) and "Bad Request" in str(e): raise UserError(e) - if isinstance(e, HttpError): - if http_error_code := e.code: - message = e.message or e - if 400 <= http_error_code < 500: - raise UserError(message) - if http_error_code >= 500: - raise ProviderError(message) + if isinstance(e, HttpError) and (http_error_code := e.code): + message = e.message or e + if 400 <= http_error_code < 500: + raise UserError(message) + if http_error_code >= 500: + raise ProviderError(message) logger.error(f"unhandled exception from gcs ({type(e)}): {e}", exc_info=True) return e