commit 54dcca0787b81fc62cd2f8cf00f8d9dd0bc1fa8a
parent 8c3a7f7842f84126f4eb892e78f6c125587e651a
Author: ThomasV <thomasv@electrum.org>
Date: Mon, 16 Jan 2017 10:18:00 +0100
fix #2118
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lib/paymentrequest.py b/lib/paymentrequest.py
@@ -66,6 +66,7 @@ PR_PAID = 3 # send and propagated
def get_payment_request(url):
u = urlparse.urlparse(url)
+ error = None
if u.scheme in ['http', 'https']:
try:
response = requests.request('GET', url, headers=REQUEST_HEADERS)