def _attach_received()

in uamqp/session.py [0:0]


    def _attach_received(self, source, target, properties, error=None):
        if error:
            self._link_error = errors.AMQPConnectionError(error)
        if self._on_attach:
            if source and target:
                source = Source.from_c_obj(source)
                target = Target.from_c_obj(target)
            if properties:
                properties = properties.value
            self._on_attach(source, target, properties, self._link_error)