Skip to content

Commit 7ea21c1

Browse files
committed
STY: Do not capture exception in variable
1 parent 1ed4537 commit 7ea21c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/funcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def crop_image(img, bounds, margin=0):
248248
try:
249249
bounds = np.asanyarray(bounds) + np.array([-margin, margin])
250250
assert bounds.shape == (3, 2)
251-
except (ValueError, AssertionError) as err:
251+
except (ValueError, AssertionError):
252252
raise ValueError("bounds must be interpretable as a 3x2 array")
253253

254254
x, y, z = bounds

0 commit comments

Comments
 (0)