kartagis / pysimplesoap

Automatically exported from code.google.com/p/pysimplesoap
0 stars 0 forks source link

AttributeError: Tag not found: Fault ('NoneType' object has no attribute 'replace') in python2.4 #55

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
--------------------------------------------------------------------------------

---
  File "/home/jinyinqiao/pysimplesoap/client.py", line 146, in <lambda>
    return lambda *args, **kwargs: self.wsdl_call(attr,*args,**kwargs)
  File "/home/jinyinqiao/pysimplesoap/client.py", line 314, in wsdl_call
    response = self.call(method, *params)
  File "/home/jinyinqiao/pysimplesoap/client.py", line 211, in call
    if self.exceptions and response("Fault", ns=soap_namespaces.values(), 
error=False):
  File "/home/jinyinqiao/pysimplesoap/simplexml.py", line 307, in __call__
    raise AttributeError(u"Tag not found: %s (%s)" % (tag, unicode(e)))
AttributeError: Tag not found: Fault ('NoneType' object has no attribute 
'replace')

--------------------------------------------------------------------------------

---

 File "/home/luciferliu/pysimplesoap/simplexml.py", line 296, in __call__
    log.debug(self._element.toxml())

The cause of the problem is that toxml() have fault in python2.4.
I comment the line 296 as below
    # log.debug(self._element.toxml())
Everything is Ok.

Original issue reported on code.google.com by jinyinq...@gmail.com on 21 Feb 2012 at 2:50

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 22d69cd0e450.

Original comment by jinyinq...@gmail.com on 19 Mar 2012 at 2:35