Raise an error if the licence check setting is not a boolean

Fix #1099
This commit is contained in:
Julien Duponchelle committed 2017-07-20 16:19:20 +02:00
1 parent 87838cb574
commit 253e113168
1 file changed
+4 -2
+4 -2
View File
@@ -360,8 +360,10 @@ class IOUVM(BaseNode):
"""
Checks for a valid IOU key in the iourc file (paranoid mode).
"""
license_check = self._config().getboolean("license_check", True)
try:
license_check = self._config().getboolean("license_check", True)
except ValueError:
raise IOUError("Invalid licence check setting")
if license_check is False:
return