Show More
@@ -67,7 +67,7 b' def run_task(task, *args, **kwargs):' | |||||
67 | return t |
|
67 | return t | |
68 |
|
68 | |||
69 | except socket.error, e: |
|
69 | except socket.error, e: | |
70 | if e.errno == 111: |
|
70 | if isinstance(e, IOError) and e.errno == 111: | |
71 | log.debug('Unable to connect to celeryd. Sync execution') |
|
71 | log.debug('Unable to connect to celeryd. Sync execution') | |
72 | else: |
|
72 | else: | |
73 | log.error(traceback.format_exc()) |
|
73 | log.error(traceback.format_exc()) |
General Comments 0
You need to be logged in to leave comments.
Login now