Skip to content

Commit 5279e1a

Browse files
committed
lint
1 parent 2314be8 commit 5279e1a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pandas/tests/tseries/offsets/test_offsets.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def _get_offset(self, klass, value=1, normalize=False):
113113
else:
114114
try:
115115
klass = klass(value, normalize=normalize)
116-
except:
116+
except Exception:
117117
klass = klass(normalize=normalize)
118118
return klass
119119

@@ -143,7 +143,9 @@ def test_apply_out_of_range(self, tz):
143143

144144
except tslib.OutOfBoundsDatetime:
145145
raise
146-
except (ValueError, KeyError) as e:
146+
except (ValueError, KeyError):
147+
# we are creating an invalid offset
148+
# so ignore
147149
pass
148150

149151

0 commit comments

Comments
 (0)