Skip to content

Commit

Permalink
python/ovs/socket_util: Fix error path in set_nonblocking.
Browse files Browse the repository at this point in the history
'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 <[email protected]>
Acked-by: Kyle Mestery <[email protected]>
  • Loading branch information
blp committed Nov 20, 2012
1 parent 8d7785b commit a32f090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/ovs/socket_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def set_nonblocking(sock):
sock.setblocking(0)
except socket.error, e:
vlog.err("could not set nonblocking mode on socket: %s"
% os.strerror(get_socket_error(e)))
% os.strerror(get_exception_errno(e)))


def set_dscp(sock, dscp):
Expand Down

0 comments on commit a32f090

Please sign in to comment.