mirror of
https://github.com/clearml/clearml
synced 2025-03-03 18:52:12 +00:00
Set GCS credentials to None if invalid service account creds are provided (#841)
Related to https://github.com/allegroai/clearml/issues/840
This commit is contained in:
parent
a76d2643d5
commit
911a72f561
@ -1805,7 +1805,10 @@ class _GoogleCloudStorageDriver(_Driver):
|
||||
self.name = name[len(_GoogleCloudStorageDriver.scheme_prefix):]
|
||||
|
||||
if cfg.credentials_json:
|
||||
try:
|
||||
credentials = service_account.Credentials.from_service_account_file(cfg.credentials_json)
|
||||
except ValueError:
|
||||
credentials = None
|
||||
else:
|
||||
credentials = None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user