electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit e5c19b64afe6775ad86700523ae5fa508d6fc521
parent 52d72a527acc04befc7263b23397aa7f0687b467
Author: ThomasV <thomasv@gitorious>
Date:   Tue, 23 Oct 2012 22:40:52 +0200

handle empty string (!= None)

Diffstat:
Mlib/simple_config.py | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/simple_config.py b/lib/simple_config.py @@ -58,19 +58,19 @@ class SimpleConfig: def set_key(self, key, value, save = False): # find where a setting comes from and save it there - if self.options_config.get(key): + if self.options_config.get(key) is not None: print "Warning: not changing '%s' because it was passed as a command-line option"%key return - elif self.user_config.get(key): + elif self.user_config.get(key) is not None: self.user_config[key] = value if save: self.save_user_config() - elif self.system_config.get(key): + elif self.system_config.get(key) is not None: if str(self.system_config[key]) != str(value): print "Warning: not changing '%s' because it was set in the system configuration"%key - elif self.wallet_config.get(key): + elif self.wallet_config.get(key) is not None: self.wallet_config[key] = value if save: self.save_wallet_config()