mvantellingen / python-zeep

A Python SOAP client
http://docs.python-zeep.org
Other
1.88k stars 578 forks source link

fix: IndexError when empty body response #1287

Open pruthvi145 opened 2 years ago

pruthvi145 commented 2 years ago

Issue

When there is no body element in the response, zeep is throwing an IndexError because there is eventually 0 xmlelement.

Changes Made

Added check for the not empty xmlelement in DocumentMessage._deserialize_body