fix: set_config
This commit is contained in:
parent
d85a11173d
commit
ca62df89d4
|
@ -118,11 +118,12 @@ class Commands:
|
||||||
|
|
||||||
@command('')
|
@command('')
|
||||||
def setconfig(self, key, value):
|
def setconfig(self, key, value):
|
||||||
"""Set a configuration variable. 'value' uses Python syntax"""
|
"""Set a configuration variable. 'value' may be a string or a Python expression."""
|
||||||
|
value = ast.literal_eval(value)
|
||||||
try:
|
try:
|
||||||
value = ast.literal_eval(value)
|
value = ast.literal_eval(value)
|
||||||
except:
|
except:
|
||||||
return False
|
pass
|
||||||
self.config.set_key(key, value)
|
self.config.set_key(key, value)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
|
@ -103,6 +103,7 @@ class PaymentRequest:
|
||||||
self.payment_url = self.details.payment_url
|
self.payment_url = self.details.payment_url
|
||||||
|
|
||||||
def verify(self):
|
def verify(self):
|
||||||
|
""" verify chain of certificates. The last certificate is the CA"""
|
||||||
if not ca_list:
|
if not ca_list:
|
||||||
self.error = "Trusted certificate authorities list not found"
|
self.error = "Trusted certificate authorities list not found"
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue