Commit f0498037 authored by Chris McDonough's avatar Chris McDonough

Account for differences in error value repr on MacOS X.

parent 7e7bb212
......@@ -281,7 +281,7 @@ def send_action(action, sockname):
sock.close()
return response
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
# domain socket filename, we want to make MacOS users aware
# 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