Στις 5/7/2013 10:06 πμ, ο/η Lele Gaifax έγραψε:
     try:
        host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0]
     except:
        host = "Reverse DNS Failed"


Yes i uses to had it like that, until i was looking for ways to make it hold the error

except Exception as e:
        print( e )
        host = e

but print( e ) in the way i used to had it doesn't print out the error, it instead gives an internal server error on browser.

I must somehow take a look at the error to understand why every visitor i have gets UnResolved, but how since prints fails?

--
What is now proved was at first only imagined!
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to