Skip to content

fix: narrow exception in skill override restoration from Exception to OSError - #3920

Open
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/presets-skill-override-narrow-exception
Open

fix: narrow exception in skill override restoration from Exception to OSError#3920
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/presets-skill-override-narrow-exception

Conversation

@Quratulain-bilal

Copy link
Copy Markdown
Contributor

Problem

Bare except Exception silently swallows all errors in skill override restoration.

Fix

Narrow to OSError which is the realistic failure mode for file operations.

Testing

  • Verified skill overrides are restored correctly
  • Verified file operation failures are handled gracefully

… OSError

Bare 'except Exception' silently swallows all errors. Narrow to
OSError which is the realistic failure mode for file operations.
@Quratulain-bilal
Quratulain-bilal requested a review from mnriem as a code owner July 31, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant