pika2: AuthenticationError only available in pika 0.9.6dev

This commit is contained in:
Ask Solem 2012-02-01 13:12:18 +00:00
parent 8c8c1ab5b6
commit 4c895c9a22
1 changed files with 5 additions and 1 deletions

View File

@ -166,13 +166,17 @@ class Connection(blocking.BlockingConnection):
super(Connection, self).close(*args)
AuthenticationError = getattr(exceptions, "AuthenticationError",
getattr(exceptions, "LoginError"))
class Transport(base.Transport):
default_port = DEFAULT_PORT
connection_errors = (socket.error,
exceptions.ConnectionClosed,
exceptions.ChannelClosed,
exceptions.AuthenticationError,
AuthenticationError,
exceptions.NoFreeChannels,
exceptions.DuplicateConsumerTag,
exceptions.UnknownConsumerTag,