From 6b5a2b98d2a2640cb202573c234f7dc473dd55d9 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sun, 15 Jan 2012 21:13:20 +0100 Subject: [PATCH] fix URI parsing --- client/electrum.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/electrum.py b/client/electrum.py index 98f4e17d4..eaa432a15 100755 --- a/client/electrum.py +++ b/client/electrum.py @@ -775,8 +775,12 @@ if __name__ == '__main__': gui.init_wallet(wallet) gui = gui.BitcoinGUI(wallet) if re.match('^bitcoin:', cmd): - address, params = cmd[8:].split('?') - params = params.split('&') + o = cmd[8:].split('?') + address = o[0] + if len(o)>1: + params = o[1].split('&') + else: + params = [] cmd = 'gui' amount = '' label = ''