-
Notifications
You must be signed in to change notification settings - Fork 24
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
Conversation
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. |
There was a problem hiding this 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
de24827
to
ecc7835
Compare
Resolve #189
Return 1 instead of 0 when failing due to an exception.