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

Fix #1099
pull/1137/head
Julien Duponchelle 7 years ago
parent 87838cb574
commit 253e113168
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -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

Loading…
Cancel
Save