whois/whois.py
changeset 132 7666f0765fe4
parent 124 dfa8657bdefc
child 134 3ff7f09ea24a
--- a/whois/whois.py	Thu Aug 24 15:52:15 2017 +0000
+++ b/whois/whois.py	Sun Aug 27 11:22:42 2017 -0300
@@ -126,7 +126,7 @@
             print('Socket Error:', socketerror)
 
         nhost = None
-        response = response.decode('utf-8', errors='replace')
+        response = response.decode('utf-8', 'replace')
         if 'with "=xxx"' in response:
             return self.whois(query, hostname, flags, True)
         if flags & NICClient.WHOIS_RECURSE and nhost is None: