electrum

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

commit 799654dd7410af5611c3284dbfb1fe6a9cf84d8e
parent 9f36ef39313001ab96e84527990d453c8004da30
Author: ThomasV <thomasv@gitorious>
Date:   Fri, 12 Oct 2012 21:31:30 +0200

catch NoSectionError in simple_config

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

diff --git a/lib/simple_config.py b/lib/simple_config.py @@ -130,8 +130,11 @@ class SimpleConfig: p = ConfigParser.ConfigParser() p.read(name) - for k, v in p.items('client'): - self.system_config[k] = v + try: + for k, v in p.items('client'): + self.system_config[k] = v + except ConfigParser.NoSectionError: + pass def read_user_config(self): @@ -145,8 +148,11 @@ class SimpleConfig: p = ConfigParser.ConfigParser() p.read(name) - for k, v in p.items('client'): - self.user_config[k] = v + try: + for k, v in p.items('client'): + self.user_config[k] = v + except ConfigParser.NoSectionError: + pass def init_path(self, wallet_path):