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

Add sys.exit() to both sender and reciever #263

Merged
merged 5 commits into from
Sep 18, 2023

Conversation

RoseECooper
Copy link
Contributor

@RoseECooper RoseECooper commented Sep 18, 2023

Resolve #189
Return 1 instead of 0 when failing due to an exception.

@RoseECooper RoseECooper requested a review from a team as a code owner September 18, 2023 12:57
@tofu-rocketry tofu-rocketry self-assigned this Sep 18, 2023
@tofu-rocketry tofu-rocketry added this to the 3.3.1 milestone Sep 18, 2023
@RoseECooper
Copy link
Contributor Author

Added a flag to both the sender and receiver functions and moved sys.exit() to the end of each. Added an else statement to handle when no exception is encountered, however this is redundant in the receiver function currently due to the while loop but has been left in as a fail safe for future refactoring.

Copy link
Member

@tofu-rocketry tofu-rocketry left a comment

Choose a reason for hiding this comment

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

Can you fix the Codeclimate issues? (Other than the line too long, as I'm happy with lines that are <100 chars.)

Return 1 instead of 0 when failing due to an exception
Added a flag to both sender and reciever to return true when an
exception is thrown. Moved sys.exit() to the end of the sender and
reveiver functions.
Changed if statement to compact format
@tofu-rocketry tofu-rocketry merged commit 6f7a21c into apel:dev Sep 18, 2023
@RoseECooper RoseECooper deleted the issue189 branch September 18, 2023 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

ssmsend should return non-zero error code if it fails
2 participants