In <[email protected]> SS 
<[email protected]> 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
[email protected]              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

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

Reply via email to