diff --git a/ipwhois/net.py b/ipwhois/net.py index 091f802..a904654 100644 --- a/ipwhois/net.py +++ b/ipwhois/net.py @@ -611,12 +611,17 @@ def get_whois(self, asn_registry='arin', retry_count=3, server=None, 'exceeded, wait and try again (possibly a ' 'temporary block).'.format(self.address_str)) - elif ('error 501' in response or 'error 230' in response - ): # pragma: no cover + elif 'error 501' in response: # pragma: no cover log.debug('WHOIS query error: {0}'.format(response)) raise ValueError + elif 'error 230' in response: # pragma: no cover + + # No results found + log.debug('WHOIS query error: {0}'.format(response)) + pass + return str(response) except (socket.timeout, socket.error) as e: