diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-09-16 12:00:34 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-09-16 12:00:34 +0100 |
| commit | 6bba8058751c56e0241196379dc69648655e7700 (patch) | |
| tree | 970ac040953bd42db9a9c6968ae248915707a4d9 | |
| parent | 3a60d670804c4ba66a10c36a20c20e2657a8576a (diff) | |
| parent | 960ce7582d6624c3858593a7511166302f8c923e (diff) | |
Merge branch 'master' of git.carlh.net:git/cdist
| -rwxr-xr-x | cdist | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -121,10 +121,10 @@ class Config: def get(self, k): for o in self.options: if o.key == k: + if o.value is None: + raise Error('Required setting %s not found' % k) return o.value - raise Error('Required setting %s not found' % k) - def set(self, k, v): for o in self.options: o.offer(k, v) |
