Skip to content

Conversation

@asmahumera520-wq
Copy link

Summary

This pull request improves file reading safety by adding proper error handling
in the functions read_yaml() and read_json() in utils.py.

Changes Made

  • Added try/except blocks for FileNotFoundError and JSON/YAML parsing errors.
  • Ensured missing or invalid files now log clear messages instead of crashing.

Why This Fix Matters

This makes igel more stable and user-friendly by preventing runtime crashes
when configuration or model files are missing.

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