UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte
nikos at superhost.gr
Thu Jul 4 17:56:14 CEST 2013
Στις 4/7/2013 6:10 μμ, ο/η MRAB έγραψε:
> What do you mean "I don't know how to catch the exception with
> OSError"? You've tried "except socket.gaierror" and "except
> socket.herror", well just write "except OSError" instead!
host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )
host = "UnResolved"
produces also an internal server error.
Are you sure is just except OSError ?
seems very general...
What is now proved was at first only imagined!
More information about the Python-list