electrum

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

commit cb2d5ff3d6f58f62fccc8b2b8a36c6b772a49957
parent b27aeadb719ccdc4a7a8d94cc5d6a4218a64c010
Author: ThomasV <thomasv@electrum.org>
Date:   Tue, 14 Mar 2017 08:56:30 +0100

raise special exception for dangling links

Diffstat:
Melectrum | 1+
Mlib/simple_config.py | 2++
2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/electrum b/electrum @@ -353,6 +353,7 @@ if __name__ == '__main__': sys.exit(1) config_options['url'] = uri + # todo: defer this to gui config = SimpleConfig(config_options) cmdname = config.get('cmd') diff --git a/lib/simple_config.py b/lib/simple_config.py @@ -161,6 +161,8 @@ class SimpleConfig(PrintError): # default path dirpath = os.path.join(self.path, "wallets") if not os.path.exists(dirpath): + if os.path.islink(dirpath): + raise BaseException('Dangling link: ' + dirpath) os.mkdir(dirpath) new_path = os.path.join(self.path, "wallets", "default_wallet")