Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Commit

Permalink
Handle socket, IO, and EOF errors when opening a new connection.
Browse files Browse the repository at this point in the history
  • Loading branch information
robotadam committed Mar 9, 2011
1 parent 2ff5a41 commit c9e3b93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycassa/pool.py
Expand Up @@ -121,7 +121,7 @@ def _create_connection(self):
server = self._get_next_server()
wrapper = self._get_new_wrapper(server)
return wrapper
except Thrift.TException, exc:
except (Thrift.TException, socket.error, IOError, EOFError), exc:
self._notify_on_failure(exc, server)
failure_count += 1
raise AllServersUnavailable('An attempt was made to connect to each of the servers '
Expand Down

0 comments on commit c9e3b93

Please sign in to comment.