-
Notifications
You must be signed in to change notification settings - Fork 14
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
OSError #20
OSError #20
Conversation
try: | ||
exit_status = call(self.command, stdout=stdout, stderr=stderr) | ||
except OSError: | ||
exit_status = 1 | ||
|
||
last_lines_stdout = self._get_last_lines(stdout) |
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.
I think this will be a problem when you have OSError.
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.
Sorry I don't follow, what scenarios are you thinking?
try: | ||
exit_status = call(self.command, stdout=stdout, stderr=stderr) | ||
except OSError: | ||
exit_status = 1 |
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.
Maybe it's a better idea to report the exception to Sentry right here.
try using following code but the result were the same:
this is after lines added: https://sentry.io/yipitcom/tests/issues/190856199/ |
One of my cron command was failing but it was not caught by cron-sentry
Issue #3