Skip to content

Commit 3da7619

Browse files
committed
minor
1 parent 49979fb commit 3da7619

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spyne/protocol/soap/soap12.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ def fault_to_parent(self, ctx, cls, inst, parent, ns, **_):
9797
return self._fault_to_parent_impl(ctx, cls, inst, parent, ns, subelts)
9898

9999
def _fault_to_parent_impl(self, ctx, cls, inst, parent, ns, subelts, **_):
100+
assert isinstance(subelts, list)
101+
100102
tag_name = "{%s}Fault" % self.ns_soap_env
101103

102104
if isinstance(inst.faultcode, string_types):
@@ -118,7 +120,8 @@ def _fault_to_parent_impl(self, ctx, cls, inst, parent, ns, subelts, **_):
118120
subelts[0] = code
119121

120122
if isinstance(inst.detail, dict):
121-
_append(subelts, E('{%s}Detail' % self.ns_soap_env, root_dict_to_etree(inst.detail)))
123+
_append(subelts, E('{%s}Detail' % self.ns_soap_env,
124+
root_dict_to_etree(inst.detail)))
122125

123126
elif inst.detail is None:
124127
pass

0 commit comments

Comments
 (0)