twisted / txaws

Twisted-based Asynchronous Libraries for Amazon Web Services and clouds that support the AWS APIs
MIT License
32 stars 18 forks source link

Don't blow up on alias rrsets in list_resource_record_sets #45

Closed exarkun closed 7 years ago

exarkun commented 7 years ago

If you list the rrsets in a zone with an alias record:

Traceback (most recent call last):
  File "twisted/web/_newclient.py", line 1185, in _bodyDataFinished_CONNECTED
    self._bodyProtocol.connectionLost(reason)
  File "txaws/client/base.py", line 156, in connectionLost
    d.callback(data)
  File "twisted/internet/defer.py", line 457, in callback
    self._startRunCallbacks(result)
  File "twisted/internet/defer.py", line 565, in _startRunCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "twisted/internet/defer.py", line 651, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "txaws/route53/client.py", line 242, in _handle_list_resource_record_sets_response
    ttl = int(rrset.find("TTL").text)
exceptions.AttributeError: 'NoneType' object has no attribute 'text'

Supporting these would be one step towards resolving #35.