From 8c309afef43a9b092f0b947ca04eb773492522e9 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Tue, 20 Apr 2021 18:07:05 +0300 Subject: [PATCH] Fix Google API credentials without storage section raises exception on import (issue #331) --- clearml/backend_config/bucket_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clearml/backend_config/bucket_config.py b/clearml/backend_config/bucket_config.py index 4171ca9e..28c84141 100644 --- a/clearml/backend_config/bucket_config.py +++ b/clearml/backend_config/bucket_config.py @@ -242,8 +242,8 @@ class GSBucketConfigurations(BaseBucketConfigurations): config_list = gs_configuration.get("credentials", []) buckets_configs = [GSBucketConfig(**entry) for entry in config_list] - default_project = gs_configuration.get("project") or {} - default_credentials = gs_configuration.get("credentials_json") or default_credentials + default_project = gs_configuration.get("project", None) or {} + default_credentials = gs_configuration.get("credentials_json", None) or default_credentials return cls(buckets_configs, default_project, default_credentials)