author | Bryan O'Sullivan <bryano@fb.com> |
Thu, 20 Dec 2012 11:40:04 -0800 | |
changeset 18107 | c60d09dc2164 |
parent 18106 | 2cf01eb74842 |
child 18108 | bc694d78d843 |
--- a/hgext/inotify/server.py Tue Dec 18 01:51:08 2012 +0100 +++ b/hgext/inotify/server.py Thu Dec 20 11:40:04 2012 -0800 @@ -334,7 +334,7 @@ lambda p: os.path.join(root, '.hg', p), 'inotify') except (OSError, socket.error), err: - if err.errno == errno.EADDRINUSE: + if err.args[0] == errno.EADDRINUSE: raise AlreadyStartedException(_('cannot start: ' 'socket is already bound')) raise