Skip to content

Commit 2fa6873

Browse files
roadswitcherphofl
authored andcommitted
STYLE Suppressing two instances of pylint W0703 broad-except. (pandas-dev#49470)
* Suppressing two instances of pylint W0703 broad-except. 32 more to check. * Ran pre-commit, fixed spacing.
1 parent 6895e26 commit 2fa6873

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/_testing/_io.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def wrapper(*args, **kwargs):
225225
)
226226
try:
227227
return t(*args, **kwargs)
228-
except Exception as err:
228+
except Exception as err: # pylint: disable=broad-except
229229
errno = getattr(err, "errno", None)
230230
if not errno and hasattr(errno, "reason"):
231231
# error: "Exception" has no attribute "reason"

pandas/core/dtypes/cast.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def maybe_cast_to_extension_array(
495495

496496
try:
497497
result = cls._from_sequence(obj, dtype=dtype)
498-
except Exception:
498+
except Exception: # pylint: disable=broad-except
499499
# We can't predict what downstream EA constructors may raise
500500
result = obj
501501
return result

0 commit comments

Comments
 (0)