tfix: set_config - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit ca62df89d4514e7ea0fdde7170f9270d9f62c3f0 DIR parent d85a11173d00a653c535ee0e4e34068676d49352 HTML Author: ThomasV <thomasv@gitorious> Date: Wed, 3 Jun 2015 10:02:12 +0200 fix: set_config Diffstat: M lib/commands.py | 5 +++-- M lib/paymentrequest.py | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) --- DIR diff --git a/lib/commands.py b/lib/commands.py t@@ -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 DIR diff --git a/lib/paymentrequest.py b/lib/paymentrequest.py t@@ -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