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

Fix emailing of unexpected error in Worker._announce_scheduling_failure. #2191

Merged
merged 2 commits into from
Jul 30, 2017
Merged

Fix emailing of unexpected error in Worker._announce_scheduling_failure. #2191

merged 2 commits into from
Jul 30, 2017

Conversation

Stranger6667
Copy link
Contributor

Description

This PR fixes a small issue with error reporting.

Motivation and Context

The code after raise is unreachable and _email_unexpected_error will never be executed in this case. It seems like a typo.

Have you tested this? If so, how?

This code branch is not tested (as I see in coverage info), so it should not affect any builds. But I can include a test case for this if needed.

Kind Regards

Copy link
Contributor

@Tarrasch Tarrasch left a comment

Choose a reason for hiding this comment

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

Fine to merge but:

This code branch is not tested (as I see in coverage info), so it should not affect any builds. But I can include a test case for this if needed.

It would of course be nice if you even improved coverage. Especially as a new code path is introduced now.

@Stranger6667
Copy link
Contributor Author

Done! :)

@Tarrasch Tarrasch merged commit e12ea80 into spotify:master Jul 30, 2017
@Tarrasch
Copy link
Contributor

Thanks! :)

@Stranger6667 Stranger6667 deleted the fix-exceptions-handling branch July 30, 2017 10:24
This was referenced Jun 29, 2022
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