Skip to content

Commit 9186f8f

Browse files
committed
FIX: Check and fix blind exceptions
1 parent b43ec88 commit 9186f8f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ extend-select = [
147147
"UP",
148148
"YTT",
149149
"S",
150+
"BLE",
150151
"B",
151152
]
152153

smriprep/workflows/outputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,7 @@ def _is_native(value):
12701270
def _no_native(value):
12711271
try:
12721272
return int(value)
1273-
except Exception:
1273+
except (TypeError, ValueError):
12741274
return 1
12751275

12761276

0 commit comments

Comments
 (0)