diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bc663a6b1584f133bb338425f85777cab676290..fdf5a9634d9aafcc37f858156d13f5290b7f0d75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.1.3] - 2022-09-29 ## Added -- Adds the public API. +- Use the public API by default +- Supports Python3.7+ ## Fixed - Removed 'submit' command. It will be added later. diff --git a/bitia/__main__.py b/bitia/__main__.py index dbe90068cee97e76bde64fbd67a2a8c522178252..f2ff06d5c59493bd39616e9f083e3df36052b33f 100644 --- a/bitia/__main__.py +++ b/bitia/__main__.py @@ -135,7 +135,8 @@ def run_pipeline(user_input: str, server: str = "https://public.bitia.link"): Prepare the user directory to send to the server. User can also provide link to the pipeline to run. """ - if (path := Path(user_input)).exists(): + path = Path(user_input) + if path.exists(): if path.is_dir(): pipeline_zip = prepare_archive(path) elif path.is_file() and path.suffix.lower() == ".zip": @@ -150,7 +151,7 @@ def run_pipeline(user_input: str, server: str = "https://public.bitia.link"): else: # generate a temporary pipeline and submit. pipeline_zip = create_pipeline_from_command(user_input) - logging.info(f"Created pipeline in {pipeline_zip}") + logger.info(f"Created pipeline in {pipeline_zip}") submit_job(pipeline_zip, server)