From 58c302a4cf9fcd1fcef5b8f0976d33f1c98cddf2 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 13 Jun 2014 16:08:46 +0200 Subject: [PATCH] minor fixes --- gui/qt/main_window.py | 2 ++ lib/util.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index 6a9f0d4c7..ec0a7432f 100644 --- a/gui/qt/main_window.py +++ b/gui/qt/main_window.py @@ -980,6 +980,8 @@ class ElectrumWindow(QMainWindow): self.payment_request = None def pay_from_URI(self,URI): + if not URI: + return address, amount, label, message, request_url = util.parse_URI(URI) try: address, amount, label, message, request_url = util.parse_URI(URI) diff --git a/lib/util.py b/lib/util.py index c2cc91aa2..7f4e67a48 100644 --- a/lib/util.py +++ b/lib/util.py @@ -163,7 +163,7 @@ def parse_URI(uri): from decimal import Decimal if ':' not in uri: - assert bitcoin.is_address(url) + assert bitcoin.is_address(uri) return uri, None, None, None, None u = urlparse.urlparse(uri)