Skip to content

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

Description

@jonozzz

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions