mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-05 07:20:58 +00:00
Do not print empty country information.
This commit is contained in:
parent
504e806a7f
commit
c0732e3d37
2 changed files with 2 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ Fixes:
|
|||
- logging: Only write configured output parts in CSV logger.
|
||||
- logging: Correctly encode CSV output.
|
||||
Closes: SF bug #3263848
|
||||
- logging: Don't print empty country information.
|
||||
|
||||
Changes:
|
||||
- gui: Improved display of internal errors.
|
||||
|
|
|
|||
|
|
@ -459,7 +459,7 @@ class UrlBase (object):
|
|||
"""Try to ask GeoIP database for country info."""
|
||||
if self.host:
|
||||
country = geoip.get_country(self.host)
|
||||
if country is not None:
|
||||
if country:
|
||||
self.add_info(_("URL is located in %(country)s.") %
|
||||
{"country": _(country)})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue