Commit c739c744 authored by Chris McDonough's avatar Chris McDonough

Account for differences in error value repr on MacOS X.

parent e2a5535b
...@@ -281,7 +281,7 @@ def send_action(action, sockname): ...@@ -281,7 +281,7 @@ def send_action(action, sockname):
sock.close() sock.close()
return response return response
except socket.error, msg: except socket.error, msg:
if msg[1] == 'AF_UNIX path too long': if str(msg) == 'AF_UNIX path too long':
# MacOS has apparent small limits on the length of a UNIX # MacOS has apparent small limits on the length of a UNIX
# domain socket filename, we want to make MacOS users aware # domain socket filename, we want to make MacOS users aware
# of the actual problem # of the actual problem
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment