Revision: 5832 Author: nicdumz Date: 2008-08-22 05:52:45 +0000 (Fri, 22 Aug 2008)
Log Message: ----------- Print the good url in case of error in getUrl when no_hostname=True
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2008-08-21 20:52:15 UTC (rev 5831) +++ trunk/pywikipedia/wikipedia.py 2008-08-22 05:52:45 UTC (rev 5832) @@ -4468,9 +4468,9 @@ # We assume that the server is down. Wait some time, then try again. output(u"%s" % e) output(u"""\ -WARNING: Could not open '%s://%s%s'. Maybe the server or +WARNING: Could not open '%s'. Maybe the server or your connection is down. Retrying in %i minutes...""" - % (self.protocol(), self.hostname(), path, + % (url, retry_idle_time)) time.sleep(retry_idle_time * 60) # Next time wait longer, but not longer than half an hour