do not raise exception if uri has an unknown key

This commit is contained in:
ThomasV 2015-07-21 11:54:45 +02:00
parent e77f0c98e7
commit 2c1fb1e37c
2 changed files with 0 additions and 3 deletions

View File

@ -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):

View File

@ -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: