Skip to content

Improve error handling #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

silviucutieru
Copy link
Contributor

No description provided.

- Replace exit(1) calls with proper exception handling
- Update main function to catch and handle exceptions gracefully
- Add comprehensive tests for error handling scenarios
- Improve code maintainability and testability

This change makes the code more robust by:
1. Using proper exception handling instead of exit() calls
2. Making functions more testable by allowing error handling
3. Providing better error messages to users
4. Following Python best practices for error management

Fixes: Better error handling and improved testability
…tent

- Update test assertions to look for 'mysqlBadger' instead of 'MySQL Badger Report'
- All 28 tests now pass successfully
- Maintains test coverage while fixing template compatibility issues
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