Replace using sys.exit with higher level error/logic handling, e.g. custom exception #4209
Open
3 of 4 tasks
Labels
duplicate::primary
if an issue/PR has duplicates, this is the consolidated, primary issue/PR
effort-high
[deprecated]
in-progress
issue is actively being worked on
source::community
catch-all for issues filed by community members
stale::recovered
[bot] recovered after being marked as stale
type::tech-debt
identifies or resolves some technical debt
What is the idea?
We here at conda-forge use some of the conda build APIs for our work. The code has been getting an increasing number of
sys.exit
calls for errors, which are causing our jobs to die.Instead, maybe the code should raise an error and then catch it at the highest level and call sys.exit? This preserves the internals for others while maintaining the same behavior.
Why is this needed?
sys.exit
calls are harder to catch/debug when using conda_build as an API.What should happen?
Review and ideally remove all
sys.exit
calls.Additional Context
Originally posted by @beckermr in #5237 (comment)
Tasks
CondaBuildUserError
exception #5353sys.exit
withCondaBuildUserError
exceptions #5255sys.exit
incopy_readme
#5354sys.exit
inconda_build.build.bundle_conda
#5367The text was updated successfully, but these errors were encountered: