python/ovs/socket_util: Fix error path in set_nonblocking.
authorBen Pfaff <blp@nicira.com>
Tue, 20 Nov 2012 15:45:56 +0000 (07:45 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 20 Nov 2012 15:45:56 +0000 (07:45 -0800)
commita32f0904a7ed4b9cdc05165920d33cfe45349933
treef7caef0bb67d260efdd310f49bf2841b57e546e2
parent8d7785bd5a9e8ce9f21714cc7a7c7dca1086bed0
python/ovs/socket_util: Fix error path in set_nonblocking.

'e' is an exception, not a socket, so get_exception_errno() is the
appropriate function to obtain an error code from it.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Kyle Mestery <kmestery@cisco.com>
python/ovs/socket_util.py