In <8500044a-c8d1-43ad-91d9-e836d52bd...@googlegroups.com> SS 
<sami.st...@gmail.com> writes:

> I would like to be able to handle that error a bit better.  Any ideas?

Wrap the socket.gethostbyname() call in a try/except block.

-- 
John Gordon                   A is for Amy, who fell down the stairs
gor...@panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to