Skip to content

Commit

Permalink
Catch socket.gaierror in PTR lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
icgood committed Apr 22, 2016
1 parent 0ab4cc2 commit 1b766e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slimta/util/ptrlookup.py
Expand Up @@ -97,7 +97,7 @@ def start(self):
def _run(self):
try:
hostname, _, _ = socket.gethostbyaddr(self.ip)
except (socket.herror, gevent.GreenletExit):
except (socket.herror, socket.gaierror, gevent.GreenletExit):
pass
except Exception:
logging.log_exception(__name__, query=self.ip)
Expand Down

0 comments on commit 1b766e5

Please sign in to comment.