Merge pull request #122 from virtuald/errmsg
Emit more descriptive error message if config file is incorrect
This commit is contained in:
commit
856ded351c
1 changed files with 1 additions and 1 deletions
|
@ -831,7 +831,7 @@ class CoreService(object):
|
||||||
|
|
||||||
def setvalue(self, key, value):
|
def setvalue(self, key, value):
|
||||||
if key not in self.keys:
|
if key not in self.keys:
|
||||||
raise ValueError
|
raise ValueError('key `%s` not in `%s`' % (key, self.keys))
|
||||||
# this handles data conversion to int, string, and tuples
|
# this handles data conversion to int, string, and tuples
|
||||||
if value:
|
if value:
|
||||||
if key == "startidx":
|
if key == "startidx":
|
||||||
|
|
Loading…
Add table
Reference in a new issue