Skip to content

Commit

Permalink
#197 add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
hjacobs committed Aug 2, 2016
1 parent 61ed0e0 commit 6cefe29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions senza/traffic.py
Expand Up @@ -399,6 +399,9 @@ def inform_sns(arns: list, message: str, region):


def resolve_to_ip_addresses(dns_name: str) -> set:
"""
Try to resolve the given DNS name to IPv4 addresses and return empty set on ANY error.
"""
try:
answers = dns.resolver.query(dns_name, 'A')
except:
Expand Down

0 comments on commit 6cefe29

Please sign in to comment.