Fixing Unknown domain if only_global_lookups is set

pull/68/head
Fafner [_KeyZee_] 2020-03-17 16:32:39 +01:00 committed by GitHub
parent 5c5577b97d
commit 3a8b7e6077
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ class Lookyloo():
if splitted_url.hostname:
try:
ip = socket.gethostbyname(splitted_url.hostname)
except socket.gaierror, err::
except socket.gaierror:
self.logger.info(f'Name or service not known')
return False
if not ipaddress.ip_address(ip).is_global: