diff --git a/sdk/python/kfp/cli/component.py b/sdk/python/kfp/cli/component.py index 1cf410fbe83..6e01dc65a95 100644 --- a/sdk/python/kfp/cli/component.py +++ b/sdk/python/kfp/cli/component.py @@ -171,10 +171,6 @@ def _load_components(self): module_name=module_name, module_directory=module_directory) python_file = str(python_file) - if not component_modules: - logging.error( - f'No KFP components found in file {python_file}') - raise sys.exit(1) logging.info( f'Found {len(component_modules)} component(s) in file {python_file}:'