Commit 9659c68
authored
fix: replace 5 bare excepts with except Exception in bio-research scripts (#82)
Bare `except:` clauses catch `KeyboardInterrupt` and `SystemExit`, which
can mask real errors and make debugging harder. Replace with
`except Exception:` to preserve the intended error-suppression behavior
while allowing system-level exceptions to propagate normally.
Files changed:
- bio-research/skills/nextflow-development/scripts/check_environment.py (4 sites)
- bio-research/skills/nextflow-development/scripts/detect_data_type.py (1 site)
Co-authored-by: haosenwang1018 <haosenwang1018@users.noreply.github.com>1 parent e7a5e58 commit 9659c68
File tree
2 files changed
+5
-5
lines changed- bio-research/skills/nextflow-development/scripts
2 files changed
+5
-5
lines changedLines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
| 322 | + | |
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
| 330 | + | |
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
0 commit comments