1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-13 20:08:55 +00:00

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

Fix #1099
This commit is contained in:
Julien Duponchelle 2017-07-20 16:19:20 +02:00
parent 87838cb574
commit 253e113168
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

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