properly manage the registered field in the config file
This commit is contained in:
parent
4f4291e41c
commit
152d95f3de
@ -50,7 +50,9 @@ class _Profile(object):
|
|||||||
self.server = cp.get('Server', 'Server')
|
self.server = cp.get('Server', 'Server')
|
||||||
|
|
||||||
if cp.has_option('Server', 'Registered'):
|
if cp.has_option('Server', 'Registered'):
|
||||||
self.server_registered = cp.get('Server', 'Registered')
|
registered = cp.get('Server', 'Registered')
|
||||||
|
if registered.lower() == "true":
|
||||||
|
self.server_registered = True
|
||||||
|
|
||||||
del cp
|
del cp
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user