From ef0ae2e92411afa5d96fc6e4aabd8909c75512eb Mon Sep 17 00:00:00 2001 From: Osmo Salomaa Date: Sat, 28 Jun 2014 18:24:57 +0300 Subject: [PATCH] request_url: print URL to help in debugging. --- poor/util.py | 1 + 1 file changed, 1 insertion(+) diff --git a/poor/util.py b/poor/util.py index 47c2bba..7249b1d 100644 --- a/poor/util.py +++ b/poor/util.py @@ -267,6 +267,7 @@ def request_url(url, encoding=None, timeout=None): to text using `encoding`. If `timeout` is ``None`` use :var:`poor.conf.download_timeout`. """ + print("Requesting {}".format(url)) opener = urllib.request.build_opener() agent = "poor-maps/{}".format(poor.__version__) opener.addheaders = [("User-Agent", agent)]