-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
SDK/Components - Improved error when type checking fails in constructor #732
SDK/Components - Improved error when type checking fails in constructor #732
Conversation
verify_object_against_type(v, parameter_type) | ||
try: | ||
verify_object_against_type(v, parameter_type) | ||
except Exception as e: |
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.
nit: is there a more specific exception to catch?
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.
On one hand, the exception is likely TypeError
. On another hand we're re-throwing the error, so we want to wrap all exceptions. Basically, we just add the parameter name information to the exception.
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Ark-kun The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test kubeflow-pipeline-e2e-test |
…ubeflow#732) * Setup a kf-ci-dev namespace for manual sync'ing of Tekton pipelines. * This namespace is intended to allow for testing of changes to the pipelines without having to first check in the changes. Revert "Update Dockerfile.py3 (kubeflow#729)" This commit doesn't build. This reverts commit 0de5733. * Fix the entrypoint in Dockerfile.py3 for kubeflow/testing#684 * Rebuild the test worker image * Fix a bug in kf-ready-task; not properly substituting in KFNAME * Rehydrate * Update
… tasks. (kubeflow#732) * chain nested conditions * add missing license * add dependency check to remove unnecessary when expression * minor improvement to check for the exact condition rather than just the condition task
/assign @qimingj @gaoning777 @hongye-sun
This change is