Skip to content

Commit

Permalink
Remove redundant reason word from the error messages (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
raghumdani authored Sep 16, 2024
1 parent 71026ef commit 5736b47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion deltacat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

deltacat.logs.configure_deltacat_logger(logging.getLogger(__name__))

__version__ = "1.1.17"
__version__ = "1.1.18"


__all__ = [
Expand Down
6 changes: 2 additions & 4 deletions deltacat/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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):
Expand Down

0 comments on commit 5736b47

Please sign in to comment.