mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-16 10:33:09 +00:00
log country name as info
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2352 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
386ae6b43c
commit
0284f58359
1 changed files with 3 additions and 0 deletions
|
|
@ -321,6 +321,9 @@ class UrlBase (object):
|
|||
raise linkcheck.LinkCheckerError, \
|
||||
_("URL has invalid port %r") % str(self.port)
|
||||
self.port = int(self.port)
|
||||
country = self.consumer.get_country_name(self.host)
|
||||
if country is not None:
|
||||
self.add_info(_("URL is located in %s.") % _(country))
|
||||
|
||||
def check (self):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue