Skip to content

Commit 84bf03c

Browse files
fix: narrow exception in skill override restoration from Exception to OSError
Bare 'except Exception' silently swallows all errors. Narrow to OSError which is the realistic failure mode for file operations.
1 parent 5e2f9bc commit 84bf03c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/specify_cli/presets/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2231,7 +2231,7 @@ def apply_to_dir(
22312231
)
22322232
):
22332233
reconciled_skill_commands.add(cmd_name)
2234-
except Exception:
2234+
except OSError:
22352235
pass # best-effort override skill restoration
22362236

22372237
# Register skills only for the specific commands being

0 commit comments

Comments
 (0)