mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
debug: add assert Settings to DataCloud
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -13,6 +13,7 @@ from dvc.exceptions import DvcException
|
||||
from dvc.runtime import Runtime
|
||||
from dvc.system import System
|
||||
from dvc.config import ConfigError
|
||||
from dvc.settings import Settings
|
||||
|
||||
class DataCloudError(DvcException):
|
||||
def __init__(self, msg):
|
||||
@@ -333,6 +334,8 @@ class DataCloud(object):
|
||||
}
|
||||
|
||||
def __init__(self, settings):
|
||||
assert isinstance(settings, Settings)
|
||||
|
||||
#To handle ConfigI case
|
||||
if not hasattr(settings.config, '_config'):
|
||||
self._cloud = DataCloudBase(None, None, None)
|
||||
|
||||
Reference in New Issue
Block a user