# HG changeset patch # User BenoƮt Allard # Date 1420463914 -3600 # Node ID 964d7caf70b0083b79fb459139a2eaf46b2c8e19 # Parent 62c482ae1755d599f69d7b553f7dd052c3af7c6b Really fix the User-Agent issue. diff -r 62c482ae1755 -r 964d7caf70b0 farol/main.py --- a/farol/main.py Mon Jan 05 12:35:14 2015 +0100 +++ b/farol/main.py Mon Jan 05 14:18:34 2015 +0100 @@ -120,7 +120,7 @@ proxy = urllib2.ProxyHandler({'http': proxy_host, 'https': proxy_host}) opener = urllib2.build_opener(proxy) urllib2.install_opener(opener) - try: content = urllib2.urlopen(url).read() + try: content = urllib2.urlopen(request).read() except urllib2.HTTPError as e: flash('Unable to retrieve %s: %s' % (url, e)) return