Skip to content

Commit

Permalink
Only print the SOAP fault details if there are some.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Kirkpatrick committed May 2, 2009
1 parent 25d2a3d commit 905b02b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion soaplib/serializers/primitive.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ def __str__(self):
io.write(" FaultCode %s \r\n"%self.faultcode)
io.write(" FaultString %s \r\n"%self.faultstring)
io.write(" FaultDetail \r\n")
io.write(self.detail)
if self.detail is not None:
io.write(self.detail)
return io.getvalue()

class Integer:
Expand Down

0 comments on commit 905b02b

Please sign in to comment.