Skip to content

Rescue errors when running remote data-pull, action-account (LG-11359)#9453

Merged
zachmargolis merged 4 commits intomainfrom
margolis-data-pull-stacktrace
Oct 25, 2023
Merged

Rescue errors when running remote data-pull, action-account (LG-11359)#9453
zachmargolis merged 4 commits intomainfrom
margolis-data-pull-stacktrace

Conversation

@zachmargolis
Copy link
Contributor

@zachmargolis zachmargolis commented Oct 25, 2023

🎫 Ticket

LG-11359

🛠 Summary of changes

Fixes scripts so that we don't log stacktraces like this

screenshot
Screenshot 2023-10-25 at 12 45 07 PM

**Why**: To prevent dumping full stacktraces to stderr, which go to Slack

changelog: Internal, Scripts, Update data-pull, action-account tasks to rescue errors
@zachmargolis zachmargolis requested review from a team and mitchellhenke October 25, 2023 19:46
else
self.class.render_output(result.table, format: config.format, stdout: stdout)
end
rescue => err
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I considered rescuing Exception here because we really don't want things escaping, and it's hard to know what will be thrown... but in the meantime sticking with StandardError (as-is) seems fine.

@zachmargolis zachmargolis merged commit a1df492 into main Oct 25, 2023
@zachmargolis zachmargolis deleted the margolis-data-pull-stacktrace branch October 25, 2023 21:04
@mdiarra3 mdiarra3 mentioned this pull request Oct 26, 2023
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