Mercurial > kallithea
changeset 1414:4f2c4fcc770b beta
fixed Python2.5 socket error
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 02 Jul 2011 18:17:31 +0200 |
parents | c8be7408f654 |
children | 677408ee9355 |
files | rhodecode/lib/celerylib/__init__.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/celerylib/__init__.py Sat Jul 02 14:56:18 2011 +0000 +++ b/rhodecode/lib/celerylib/__init__.py Sat Jul 02 18:17:31 2011 +0200 @@ -67,7 +67,7 @@ return t except socket.error, e: - if e.errno == 111: + if isinstance(e, IOError) and e.errno == 111: log.debug('Unable to connect to celeryd. Sync execution') else: log.error(traceback.format_exc())