fix calling for_code without referencing the Errors module

This commit is contained in:
Lars Jørgen Solberg
2016-07-25 09:31:06 +00:00
committed by Dana Powers
parent 2ebf9133ef
commit 2ce9eed23a

View File

@@ -329,7 +329,7 @@ class BrokerConnection(object):
response = self.recv()
if not response.error_code is 0:
raise for_code(response.error_code)
raise Errors.for_code(response.error_code)
if not self.config['sasl_mechanism'] in response.enabled_mechanisms:
raise AuthenticationMethodNotSupported(self.config['sasl_mechanism'] + " is not supported by broker")