From 2c6f091b291f8eaf1653b8c7f9255c0ca76b6d33 Mon Sep 17 00:00:00 2001 From: Sascha Rommelfangen Date: Wed, 8 Feb 2017 14:15:03 +0100 Subject: [PATCH] fixed issue with encoding as an example, AS2602 crashed pythonwhois because there is a \xe9 non-utf8 character in the address field. --- pythonwhois/net.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonwhois/net.py b/pythonwhois/net.py index 53f87ba..43a7982 100644 --- a/pythonwhois/net.py +++ b/pythonwhois/net.py @@ -91,4 +91,4 @@ def whois_request(domain, server, port=43): if len(data) == 0: break buff += data - return buff.decode("utf-8") + return buff.decode("utf-8", 'ignore')