tdo not raise exception if uri has an unknown key - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 2c1fb1e37ce0e82c768befd2c3d52cf07cc75c5e DIR parent e77f0c98e774f1566ec7f0cb78ac41f2d462c608 HTML Author: ThomasV <thomasv@gitorious> Date: Tue, 21 Jul 2015 11:54:45 +0200 do not raise exception if uri has an unknown key Diffstat: M gui/qt/main_window.py | 1 - M lib/util.py | 2 -- 2 files changed, 0 insertions(+), 3 deletions(-) --- DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py t@@ -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): DIR diff --git a/lib/util.py b/lib/util.py t@@ -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: