From 5736b47b72fc94eec5c35ce04b250889f8d6ebe4 Mon Sep 17 00:00:00 2001 From: Raghavendra M Dani Date: Mon, 16 Sep 2024 12:33:48 -0700 Subject: [PATCH] Remove redundant reason word from the error messages (#353) --- deltacat/__init__.py | 2 +- deltacat/exceptions.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/deltacat/__init__.py b/deltacat/__init__.py index 8dbf59b4..167892a4 100644 --- a/deltacat/__init__.py +++ b/deltacat/__init__.py @@ -44,7 +44,7 @@ deltacat.logs.configure_deltacat_logger(logging.getLogger(__name__)) -__version__ = "1.1.17" +__version__ = "1.1.18" __all__ = [ diff --git a/deltacat/exceptions.py b/deltacat/exceptions.py index 00b74bf0..40690a60 100644 --- a/deltacat/exceptions.py +++ b/deltacat/exceptions.py @@ -299,7 +299,7 @@ def _categorize_tenacity_error(e: tenacity.RetryError): def _categorize_dependency_pyarrow_error(e: ArrowException): if isinstance(e, ArrowInvalid): raise DependencyPyarrowInvalidError( - f"Pyarrow Invalid error occurred. Reason: {e}" + f"Pyarrow Invalid error occurred. {e}" ) from e elif isinstance(e, ArrowCapacityError): raise DependencyPyarrowCapacityError("Pyarrow Capacity error occurred.") from e @@ -308,9 +308,7 @@ def _categorize_dependency_pyarrow_error(e: ArrowException): def _categorize_assertion_error(e: BaseException): - raise ValidationError( - f"One of the assertions in DeltaCAT has failed. Reason: {e}" - ) from e + raise ValidationError(f"One of the assertions in DeltaCAT has failed. {e}") from e def _categorize_daft_error(e: DaftCoreException):