Skip to content

Commit

Permalink
Merge pull request #6 from pogzyb/release/v0.1.2
Browse files Browse the repository at this point in the history
Fix incorrect 'aclose()' call
  • Loading branch information
pogzyb authored Sep 22, 2021
2 parents b3b5de4 + ac7a739 commit 6ec972e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions whodap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from .response import DomainResponse

__all__ = ['aio_lookup_domain', 'lookup_domain', 'DNSClient']
__version__ = '0.1.1'
__version__ = '0.1.2'


def lookup_domain(domain: str,
Expand Down Expand Up @@ -45,5 +45,5 @@ async def aio_lookup_domain(domain: str,
dns_client = await DNSClient.new_aio_client(httpx_client)
response = await dns_client.aio_lookup(domain, tld)
if not httpx_client and not dns_client.httpx_client.is_closed:
await dns_client.httpx_client.close()
await dns_client.httpx_client.aclose()
return response

0 comments on commit 6ec972e

Please sign in to comment.