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

"exit 1" breaks ones code #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

"exit 1" breaks ones code #10

wants to merge 1 commit into from

Conversation

levmatta-umanni
Copy link

Please do not swallow exceptions, and do not exit without my consent.
I simpĺy changed the code to let the exception bubble up.

rescue Beanstalk::NotConnected => e
failed_connection(e)
rescue SystemExit
raise
Copy link

Choose a reason for hiding this comment

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

Don't delete this rescue SystemExit block. It prevents SystemExit from being handled and swallowed by the rescue block just below.

Copy link

Choose a reason for hiding this comment

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

Also don't delete the rescue Beanstalk::NotConnected block on line 91, for the same reason. Instead, replace failed_connection(e) with raise.

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.

2 participants