From 181fdfa41a0e6c0bbb1ea6cd83449d466515346e Mon Sep 17 00:00:00 2001 From: Pruthvi Patel Date: Mon, 3 Jan 2022 11:18:37 +0530 Subject: [PATCH] fix: IndexError when empty body response --- src/zeep/wsdl/messages/soap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zeep/wsdl/messages/soap.py b/src/zeep/wsdl/messages/soap.py index 553bfa2c2..041bcdc9c 100644 --- a/src/zeep/wsdl/messages/soap.py +++ b/src/zeep/wsdl/messages/soap.py @@ -432,7 +432,7 @@ def __init__(self, *args, **kwargs): def _deserialize_body(self, xmlelement): - if not self._is_body_wrapped: + if not self._is_body_wrapped and len(xmlelement): # TODO: For now we assume that the body only has one child since # only one part is specified in the wsdl. This should be handled # way better