add exception to try

This commit is contained in:
bittles
2023-01-02 00:00:56 -05:00
parent 5f0a21fd93
commit 1ed7eeaea2
+2
View File
@@ -975,6 +975,8 @@ class EcoVacsXMPP(ClientXMPP):
other_part = message.get_payload()[1][0] other_part = message.get_payload()[1][0]
_LOGGER.debug("handle_ctl called with get_payload()[1][0], the other part:") _LOGGER.debug("handle_ctl called with get_payload()[1][0], the other part:")
_LOGGER.debug(other_part) _LOGGER.debug(other_part)
except TypeError:
_LOGGER.warning("No extra payload")
def _ctl_to_dict(self, xml): def _ctl_to_dict(self, xml):
result = xml.attrib.copy() result = xml.attrib.copy()