code: def get_state(self):
          
          try:
              raise self._error
          except TypeError:
              pass
          except Exception as e:
              _logger.warning("%r", e)
              raise
          return self._state
docs: Get the state of the MessageSender and its underlying Link.
  
          :rtype: ~uamqp.constants.MessageSenderState