Traceback (most recent call last):


 "nest.py", line 7, in <module>

s.to_dict()


 "/usr/local/lib/python2.7/dist-packages/elasticsearch_dsl/document.py", line 196, in to_dict

d = super(DocType, self).to_dict()


 "/usr/local/lib/python2.7/dist-packages/elasticsearch_dsl/utils.py", line 349, in to_dict

v = f.serialize(v)


 "/usr/local/lib/python2.7/dist-packages/elasticsearch_dsl/field.py", line 70, in serialize

return self._serialize(data)


 "/usr/local/lib/python2.7/dist-packages/elasticsearch_dsl/field.py", line 183, in _serialize

return data.to_dict()
AttributeError: 'NoneType' object has no attribute 'to_dict'

Traceback (most recent call last):


 "/root/salt/salt/transport/tcp.py", line 893, in _stream_return
AttributeError: 'NoneType' object has no attribute 'StreamClosedError'
