SOAPpy icon indicating copy to clipboard operation
SOAPpy copied to clipboard

Error in SOAPpy.Client: 'NoneType' object has no attribute 'read'

Open jonozzz opened this issue 13 years ago • 0 comments

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'

jonozzz avatar Oct 14 '11 05:10 jonozzz