jeffkit/SOAPpy — Issue #3: Error in SOAPpy.Client: 'NoneType' object has no attribute 'read'
Author: jonozzz
Created: 2011-10-14 05:21:43+00:00
State: open

I've noticed this happening a few times, usually when the underlying socket is dropped. I'd guess in those cases getfile() returns None and read() doesn't make any sense.

File "/home/jono/work/virtualenvs/f5test2/eggs/SOAPpy-0.12.5-py2.7.egg/SOAPpy/Client.py", line 540, in __call__
return self.__r_call(*args, **kw)
File "/home/jono/work/virtualenvs/f5test2/eggs/SOAPpy-0.12.5-py2.7.egg/SOAPpy/Client.py", line 562, in __r_call
self.__hd, self.__ma)
File "/home/jono/work/virtualenvs/f5test2/eggs/SOAPpy-0.12.5-py2.7.egg/SOAPpy/Client.py", line 425, in __call
timeout = self.timeout)
File "/home/jono/work/virtualenvs/f5test2/eggs/SOAPpy-0.12.5-py2.7.egg/SOAPpy/Client.py", line 286, in call
data = r.getfile().read()
AttributeError: 'NoneType' object has no attribute 'read'