diff --git a/linkcheck/ansicolor.py b/linkcheck/ansicolor.py index beb1c840..6913702c 100644 --- a/linkcheck/ansicolor.py +++ b/linkcheck/ansicolor.py @@ -159,6 +159,10 @@ if os.name == 'nt': Cyan: colorama.CYAN, White: colorama.GREY, } +else: + WinColor = { + None: None, + } # pc speaker beep escape code Beep = "\007" diff --git a/linkcheck/plugins/locationinfo.py b/linkcheck/plugins/locationinfo.py index 8b835bb3..9b3b32a8 100644 --- a/linkcheck/plugins/locationinfo.py +++ b/linkcheck/plugins/locationinfo.py @@ -69,6 +69,7 @@ def get_geoip_dat(): # try importing both the C-library GeoIP and the pure-python pygeoip geoip_dat = get_geoip_dat() geoip = None +geoip_error = None if geoip_dat: try: import GeoIP