electrum

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

commit 2c1fb1e37ce0e82c768befd2c3d52cf07cc75c5e
parent e77f0c98e774f1566ec7f0cb78ac41f2d462c608
Author: ThomasV <thomasv@gitorious>
Date:   Tue, 21 Jul 2015 11:54:45 +0200

do not raise exception if uri has an unknown key

Diffstat:
Mgui/qt/main_window.py | 1-
Mlib/util.py | 2--
2 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py @@ -779,7 +779,6 @@ class ElectrumWindow(QMainWindow): vbox.addWidget(pr_e) vbox.addLayout(Buttons(CopyCloseButton(pr_e.text, self.app, dialog))) dialog.setLayout(vbox) - #print len(data), data dialog.exec_() def export_payment_request(self, addr): diff --git a/lib/util.py b/lib/util.py @@ -261,8 +261,6 @@ def parse_URI(uri): for k, v in pq.items(): if len(v)!=1: raise Exception('Duplicate Key', k) - if k not in ['amount', 'label', 'message', 'r', 'id', 'sig', 'timestamp', 'expiration']: - raise BaseException('Unknown key', k) out = {k: v[0] for k, v in pq.items()} if address: