mirror of
https://github.com/clearml/clearml
synced 2025-01-31 17:17:00 +00:00
Add exception handling when no output uri credentials are found
This commit is contained in:
parent
8f0bec5861
commit
0a5696235b
@ -491,6 +491,9 @@ class Task(_Task):
|
|||||||
if value and value != self.storage_uri:
|
if value and value != self.storage_uri:
|
||||||
from .storage.helper import StorageHelper
|
from .storage.helper import StorageHelper
|
||||||
helper = StorageHelper.get(value)
|
helper = StorageHelper.get(value)
|
||||||
|
if not helper:
|
||||||
|
raise ValueError("Could not get access credentials for '{}' "
|
||||||
|
", check configuration file ~/trains.conf".format(value))
|
||||||
helper.check_write_permissions(value)
|
helper.check_write_permissions(value)
|
||||||
self.storage_uri = value
|
self.storage_uri = value
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user