diff --git a/lib/commands.py b/lib/commands.py index ae5a27f5..3c132032 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -118,11 +118,12 @@ class Commands: @command('') 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: value = ast.literal_eval(value) except: - return False + pass self.config.set_key(key, value) return True diff --git a/lib/paymentrequest.py b/lib/paymentrequest.py index 1a1dc326..3646c9ba 100644 --- a/lib/paymentrequest.py +++ b/lib/paymentrequest.py @@ -103,6 +103,7 @@ class PaymentRequest: self.payment_url = self.details.payment_url def verify(self): + """ verify chain of certificates. The last certificate is the CA""" if not ca_list: self.error = "Trusted certificate authorities list not found" return False