guard against missing topic (#36108)

pull/36155/head
Jason Hunter 2020-05-25 07:37:47 -04:00 committed by Franck Nijhof
parent a1eb513bbc
commit 79ed8b03dc
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
1 changed files with 4 additions and 0 deletions

View File

@ -147,6 +147,10 @@ class EventManager:
async def async_parse_messages(self, messages) -> None:
"""Parse notification message."""
for msg in messages:
# Guard against empty message
if not msg.Topic:
continue
topic = msg.Topic._value_1
parser = PARSERS.get(topic)
if not parser: