summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AptSources/aptsources.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/AptSources/aptsources.py b/AptSources/aptsources.py
index 2fd4b845..646a92ac 100644
--- a/AptSources/aptsources.py
+++ b/AptSources/aptsources.py
@@ -751,6 +751,7 @@ class UbuntuDistribution(Distribution):
def get_mirror_name(server):
''' Try to get a human readable name for the main mirror of a country'''
+ country = None
i = server.find("://")
l = server.find(".archive.ubuntu.com")
if i != -1 and l != -1: