Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2019-11-27 22:27:12 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2019-11-27 22:27:12 +0000
commitbbcfd7a73da772dfeed3dd0d7a1265f4d6e5ac1d (patch)
treec72131c78edcfc64506aea385b79de1d1d4df326
parent9d984957feb3810461312f5cdeaf4b235c180ea9 (diff)
Country code instead of name
-rw-r--r--archinstall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall.py b/archinstall.py
index 33c39827..50e59d04 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -765,7 +765,7 @@ def guess_country(ip, *positionals, **kwargs):
return result
gi = pygeoip.GeoIP(GEOIP_DB)
- result = gi.country_name_by_addr(ip)
+ result = gi.country_code_by_addr(ip)
else:
log(f'Missing GeoIP database: {GEOIP_DB}', origin='guess_country', level=LOG_LEVELS.ERROR)
return result