diff --git a/dvc/data_cloud.py b/dvc/data_cloud.py index d98d961d4..f0752574c 100644 --- a/dvc/data_cloud.py +++ b/dvc/data_cloud.py @@ -348,6 +348,9 @@ class DataCloud(object): if self.typ not in self.CLOUD_MAP.keys(): raise ConfigError('Wrong cloud type %s specified' % self.typ) + if self.typ not in self._config.keys(): + raise ConfigError('Can\'t find cloud section \'[%s]\' in config' % self.typ) + self._cloud = self.CLOUD_MAP[self.typ](self._settings, self._config, self._config[self.typ]) self.sanity_check()