diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index afe18493ec276..31f9a5199f666 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1983,7 +1983,7 @@ def _catch_deprecated_value_error(err: Exception) -> None: # IntervalDtype mismatched 'closed' pass elif "Timezones don't match" not in str(err): - raise + raise err class DatetimeLikeBlock(NDArrayBackedExtensionBlock): diff --git a/pyproject.toml b/pyproject.toml index f5282b17c2961..66db33e6773ca 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,7 +67,6 @@ disable = [ "import-error", "invalid-repr-returned", "invalid-unary-operand-type", - "misplaced-bare-raise", "no-member", "no-method-argument", "no-name-in-module",