data = connection.recv(8048)
without any error catching, I get error message:
"error: (10035, "The socket operation could not complete without blocking")
I need to identify this error message 10035 in my code but dont know how to do it.
I tried:
Expand|Select|Wrap|Line Numbers
- try:
- data = connection.recv(8048)
- except (error):
- print error
I get somewhere the following code, but this doesn't work either:
Expand|Select|Wrap|Line Numbers
- import errno
- ...
- try:
- data = connection.recv(8048)
- except, (error,message):
- print error
- if error == errno.WSAEWOULDBLOCK:
- print "10035 error found, doing something..."
could anyone help me? =)