diff --git a/src/python/location-importer.in b/src/python/location-importer.in
index b791b4d..099af55 100644
--- a/src/python/location-importer.in
+++ b/src/python/location-importer.in
@@ -705,6 +705,10 @@ class CLI(object):
 						# ... but keep this list distinct...
 						continue
 
+				# When people set country codes to "UK", they actually mean "GB"
+				if val == "UK":
+					val = "GB"
+
 				inetnum[key].append(val)
 
 		# Skip empty objects
