socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

Νικόλαος Κούρας nikos.kouras at gmail.com
Fri Dec 23 12:14:14 EST 2011


On 23 Δεκ, 12:41, becky_lewis <bex.le... at gmail.com> wrote:
> Is there any possibility that you can tell us what the script actually
> is or provide a code listing (use pastebin if it's big)?

The script is about retrieving and storing the visitros hostnames to
mysql database creating a log file.

I dont know why this line host =
socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0] fails sometimes
and some other times works ok retrieving the hostnames correctly.

What do you understand from the traceback?!



More information about the Python-list mailing list