diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 81bb2a7e1..411bfd251 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -1123,8 +1123,8 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco) if answer == 'yes': self.connection.send(iq_obj.buildReply('result')) elif answer == 'no': - from common.xmpp.protocol import ERR_NOT_AUTHORIZED - err = common.xmpp.Error(iq_obj, ERR_NOT_AUTHORIZED) + err = common.xmpp.Error(iq_obj, + common.xmpp.protocol.ERR_NOT_AUTHORIZED) self.connection.send(err) def _HttpAuthCB(self, con, iq_obj):