Skip to content
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

refactor(framework) Add try-except block to flwr stop for JSON output #4712

Merged
merged 10 commits into from
Dec 16, 2024

Conversation

chongshenng
Copy link
Contributor

No description provided.

@chongshenng chongshenng changed the base branch from main to refactor-json-error December 16, 2024 10:16
@chongshenng chongshenng marked this pull request as ready for review December 16, 2024 10:34
jafermarq
jafermarq previously approved these changes Dec 16, 2024
finally:
channel.close()
except (typer.Exit, Exception): # pylint: disable=broad-except, W0612 # noqa: F841
pass
Copy link
Member

Choose a reason for hiding this comment

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

This "swallows" the exception, which mean typer.Exit ceases to work

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Similar to above, we will catch the typer.Exit in #4710.

Base automatically changed from refactor-json-error to main December 16, 2024 19:42
@danieljanes danieljanes dismissed jafermarq’s stale review December 16, 2024 19:42

The base branch was changed.

@danieljanes danieljanes enabled auto-merge (squash) December 16, 2024 20:29
@danieljanes danieljanes merged commit 194cc93 into main Dec 16, 2024
55 checks passed
@danieljanes danieljanes deleted the try-except-stop branch December 16, 2024 20:34
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.

3 participants