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

[Bugfix] Remove unnecessary ValueError #82

Merged
merged 1 commit into from
Jan 6, 2023

Conversation

denimalpaca
Copy link
Contributor

An extraneous ValueError was in build_runtime_datasources and caused incorrect operator failure when a runtime datasource is built but a connection or dataframe is not passed in. The if/elif/else block would hit the else, which was a ValueError, and it made the below if statement on checkpoint_kwargs unreachable. It has been removed as the ValueError in the first if block is sufficient to halt operator execution in the case of incorrect usage.

An extraneous ValueError was in build_runtime_datasources and caused
incorrect operator failure when a runtime datasource is built but
a connection or dataframe is not passed in. The if/elif/else block
would hit the else, which was a ValueError, and it made the below
if statement on checkpoint_kwargs unreachable. It has been removed
as the ValueError in the first if block is sufficient to halt
operator execution in the case of incorrect usage.
@denimalpaca denimalpaca requested a review from kaxil January 3, 2023 22:01
Copy link
Contributor

@talagluck talagluck left a comment

Choose a reason for hiding this comment

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

LGTM!

@kaxil kaxil merged commit 8b00e7f into main Jan 6, 2023
@kaxil kaxil deleted the bugfix_unnecessary_value_error branch January 6, 2023 21:06
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.

3 participants