Commit 800d9d33 authored by Tomas Hlavacek's avatar Tomas Hlavacek
Browse files

Fix UTF-8 replace problems in whois

Fix error in parsing/formatting output of whois command due
to UTF-8 errors.
parent f4a09b17
......@@ -40,7 +40,7 @@ def lookup(key):
if(re.match('^\s*$',l) and not begin):
if(l[0] != '%'):
res=res+l.decode('utf-8', errors='replace')
begin = True
return res
......@@ -57,6 +57,6 @@ def lookup_as_name(asn):
m = asname_regex.match(l)
asname_cache[asn] =
return'utf-8', errors='replace')
return defaults.STRING_UNKNOWN
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment