fix calling for_code without referencing the Errors module
This commit is contained in:
committed by
Dana Powers
parent
2ebf9133ef
commit
2ce9eed23a
@@ -329,7 +329,7 @@ class BrokerConnection(object):
|
|||||||
response = self.recv()
|
response = self.recv()
|
||||||
|
|
||||||
if not response.error_code is 0:
|
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:
|
if not self.config['sasl_mechanism'] in response.enabled_mechanisms:
|
||||||
raise AuthenticationMethodNotSupported(self.config['sasl_mechanism'] + " is not supported by broker")
|
raise AuthenticationMethodNotSupported(self.config['sasl_mechanism'] + " is not supported by broker")
|
||||||
|
|||||||
Reference in New Issue
Block a user