Skip to content

Conversation

@panh99
Copy link
Member

@panh99 panh99 commented Feb 2, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 2, 2026 18:54
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the cli_output_handler context manager in the Flwr CLI framework to allow typer.Exit exceptions to propagate through without being caught by the general exception handler.

Changes:

  • Added explicit handling for typer.Exit exceptions to re-raise them immediately

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +98 to +99
except typer.Exit: # Allow typer.Exit to pass through
raise
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new typer.Exit exception handling path lacks test coverage. Consider adding a test case that verifies typer.Exit exceptions are properly re-raised and not caught by the general exception handler.

Copilot uses AI. Check for mistakes.
@github-actions github-actions bot added the Maintainer Used to determine what PRs (mainly) come from Flower maintainers. label Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Better CLI UX Maintainer Used to determine what PRs (mainly) come from Flower maintainers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants